thecore_ui_rails_admin 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rails_admin/custom/ckeditor_ajax.js.coffee +7 -0
- data/app/assets/javascripts/rails_admin/custom/timer.js +135 -0
- data/app/assets/javascripts/rails_admin/custom/ui.js +115 -0
- data/app/assets/javascripts/rails_admin/ra.widgets.coffee +233 -0
- data/app/assets/stylesheets/rails_admin/custom/flashing.scss +28 -0
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +199 -0
- data/app/assets/stylesheets/rails_admin/custom/togglable-sidebar.scss +112 -0
- data/app/views/contact_mailer/contact_message.html.erb +5 -0
- data/app/views/devise/confirmations/new.html.erb +16 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/password_change.html.erb +5 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/menu/_login_items.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +25 -0
- data/app/views/devise/passwords/new.html.erb +18 -0
- data/app/views/devise/registrations/edit.html.erb +45 -0
- data/app/views/devise/registrations/new.html.erb +29 -0
- data/app/views/devise/sessions/new.html.erb +28 -0
- data/app/views/devise/shared/_links.html.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +16 -0
- data/app/views/home/index.html.erb +5 -0
- data/app/views/kaminari/_first_page.html.erb +3 -0
- data/app/views/kaminari/_gap.html.erb +3 -0
- data/app/views/kaminari/_last_page.html.erb +3 -0
- data/app/views/kaminari/_next_page.html.erb +3 -0
- data/app/views/kaminari/_page.html.erb +9 -0
- data/app/views/kaminari/_paginator.html.erb +15 -0
- data/app/views/kaminari/_prev_page.html.erb +3 -0
- data/app/views/layouts/_footer.html.erb +3 -0
- data/app/views/layouts/_messages.html.erb +9 -0
- data/app/views/layouts/_navigation.html.erb +20 -0
- data/app/views/layouts/_navigation_links.html.erb +7 -0
- data/app/views/layouts/mailer.html.erb +6 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/layouts/rails_admin/_navigation.html.haml +13 -0
- data/app/views/layouts/rails_admin/_secondary_navigation.html.haml +3 -0
- data/app/views/layouts/rails_admin/_sidebar_navigation.html.haml +4 -0
- data/app/views/layouts/rails_admin/_user_navigation.html.haml +7 -0
- data/app/views/layouts/rails_admin/application.html.haml +59 -0
- data/app/views/layouts/rails_admin/pjax.html.haml +25 -0
- data/app/views/layouts/thecore.html.erb +42 -0
- data/app/views/pages/contact.html.erb +54 -0
- data/app/views/pages/home.html.erb +2 -0
- data/app/views/pages/inside.html.erb +4 -0
- data/app/views/rails_admin/main/_card.html.haml +17 -0
- data/app/views/rails_admin/main/_modal_interaction.html.erb +53 -0
- data/app/views/rails_admin/main/dashboard.html.haml +25 -0
- data/app/views/rails_admin/main/index.html.haml +90 -0
- data/app/views/shared/_flash.html.erb +10 -0
- data/app/views/users/confirmations/new.html.erb +16 -0
- data/app/views/users/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/users/mailer/password_change.html.erb +3 -0
- data/app/views/users/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/users/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/users/passwords/edit.html.erb +19 -0
- data/app/views/users/passwords/new.html.erb +15 -0
- data/app/views/users/registrations/edit.html.erb +27 -0
- data/app/views/users/registrations/new.html.erb +17 -0
- data/app/views/users/sessions/new.html.erb +37 -0
- data/app/views/users/shared/_links.html.erb +26 -0
- data/app/views/users/unlocks/new.html.erb +16 -0
- data/config/initializers/rails_admin.rb +49 -0
- data/config/initializers/thecore_concern.rb +125 -0
- data/config/locales/en.index_cards.custom.yml +8 -0
- data/config/locales/en.main.yml +27 -0
- data/config/locales/en.rails_admin.yml +34 -0
- data/config/locales/en.rollincode.yml +5 -0
- data/config/locales/it.index_cards.custom.yml +20 -0
- data/config/locales/it.main.yml +27 -0
- data/config/locales/it.rails_admin.yml +4 -0
- data/config/locales/it.rollincode.yml +5 -0
- data/config/routes.rb +10 -0
- data/lib/thecore_ui_rails_admin.rb +3 -0
- data/lib/thecore_ui_rails_admin/engine.rb +7 -0
- data/lib/thecore_ui_rails_admin/version.rb +1 -1
- metadata +88 -2
@@ -0,0 +1,45 @@
|
|
1
|
+
<div class="col-md-4 col-md-offset-4">
|
2
|
+
<h2><%=t("devise.registrations.edit.title", resource: resource_name.to_s.humanize)%></h2>
|
3
|
+
|
4
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
5
|
+
<%= devise_error_messages! %>
|
6
|
+
|
7
|
+
<div class="field">
|
8
|
+
<%= f.label :username %><br />
|
9
|
+
<%= f.email_field :username, autofocus: true, :class => "form-control" %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
13
|
+
<div><%=t("devise.registrations.edit.currently_waiting_confirmation_for_email", {resource: resource.unconfirmed_email})%></div>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<div class="field">
|
17
|
+
<%= f.label :password %> <i><%=t("devise.shared.descriptions.leave_blank")%></i><br />
|
18
|
+
<%= f.password_field :password, autocomplete: "off", :class => "form-control" %>
|
19
|
+
<% if @minimum_password_length %>
|
20
|
+
<br />
|
21
|
+
<em><%=t "devise.validations.minimum_length", length: @minimum_password_length %></em>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="field">
|
26
|
+
<%= f.label :password_confirmation %><br />
|
27
|
+
<%= f.password_field :password_confirmation, autocomplete: "off", :class => "form-control" %>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<div class="field">
|
31
|
+
<%= f.label :current_password %> <i><%=t("devise.shared.descriptions.current_password_needed")%></i><br />
|
32
|
+
<%= f.password_field :current_password, autocomplete: "off", :class => "form-control" %>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="actions">
|
36
|
+
<%= f.submit t("devise.registrations.edit.update"), :class => "btn btn-warning" %>
|
37
|
+
</div>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
<h3><%=t("devise.registrations.edit.cancel_my_account")%></h3>
|
41
|
+
|
42
|
+
<p><%=t("devise.registrations.edit.unhappy")%> <%= button_to t("devise.registrations.edit.cancel_my_account"), registration_path(resource_name), data: { confirm: t("devise.registrations.edit.are_you_sure") }, method: :delete %></p>
|
43
|
+
|
44
|
+
<%= link_to t("devise.shared.links.back"), :back %>
|
45
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<div class="col-md-4 col-md-offset-4">
|
2
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
3
|
+
<%= devise_error_messages! %>
|
4
|
+
|
5
|
+
<div class="field">
|
6
|
+
<%= f.label :username %><br />
|
7
|
+
<%= f.text_field :username, autofocus: true, :class => "form-control" %>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class="field">
|
11
|
+
<%= f.label :password %>
|
12
|
+
<% if @minimum_password_length %>
|
13
|
+
<em>(<%= t "devise.validations.minimum_length", length: @minimum_password_length %>)</em>
|
14
|
+
<% end %><br />
|
15
|
+
<%= f.password_field :password, autocomplete: "off", :class => "form-control" %>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :password_confirmation %><br />
|
20
|
+
<%= f.password_field :password_confirmation, autocomplete: "off", :class => "form-control" %>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="actions">
|
24
|
+
<%= f.submit t("devise.registrations.new.sign_up") %>
|
25
|
+
|
26
|
+
<%= render "devise/shared/links" %>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div class="col-md-4 col-md-offset-4">
|
2
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
3
|
+
<div class="field">
|
4
|
+
<%= f.label :username %><br />
|
5
|
+
<%= f.text_field :username, autofocus: true, :class => "form-control" %>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<div class="field">
|
9
|
+
<%= f.label :password %><br />
|
10
|
+
<%= f.password_field :password, autocomplete: "off", :class => "form-control" %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<% if devise_mapping.rememberable? -%>
|
14
|
+
<div class="checkbox">
|
15
|
+
<label>
|
16
|
+
<%= f.check_box :remember_me %>
|
17
|
+
<%=t "activerecord.attributes.user.remember_me" %>
|
18
|
+
</label>
|
19
|
+
</div>
|
20
|
+
<% end -%>
|
21
|
+
|
22
|
+
<div class="actions">
|
23
|
+
<%= f.submit t("devise.sessions.new.sign_in"), :class => "btn btn-warning" %>
|
24
|
+
|
25
|
+
<%= render "devise/shared/links" %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%- if controller_name != 'sessions' %>
|
2
|
+
<%= link_to t("devise.sessions.new.sign_in"), new_session_path(resource_name), :class => "btn btn-success" %><br />
|
3
|
+
<% end -%>
|
4
|
+
|
5
|
+
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
|
+
<%= link_to t("devise.registrations.new.sign_up"), new_registration_path(resource_name), :class => "btn btn-success" %><br />
|
7
|
+
<% end -%>
|
8
|
+
|
9
|
+
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
10
|
+
<%= link_to t("devise.passwords.new.forgot_your_password"), new_password_path(resource_name), :class => "btn btn-success" %><br />
|
11
|
+
<% end -%>
|
12
|
+
|
13
|
+
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
14
|
+
<%= link_to t("devise.shared.links.didn_t_receive_confirmation_instructions"), new_confirmation_path(resource_name), :class => "btn btn-success" %><br />
|
15
|
+
<% end -%>
|
16
|
+
|
17
|
+
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
18
|
+
<%= link_to t("devise.shared.links.didn_t_receive_unlock_instructions"), new_unlock_path(resource_name), :class => "btn btn-success" %><br />
|
19
|
+
<% end -%>
|
20
|
+
|
21
|
+
<%- if devise_mapping.omniauthable? %>
|
22
|
+
<%- resource_class.omniauth_providers.each do |provider| %>
|
23
|
+
<%= link_to t("devise.shared.links.sign_in_with_provider", provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), :class => "btn btn-success" %><br />
|
24
|
+
<% end -%>
|
25
|
+
<% end -%>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<h2><%=t("devise.unlocks.new.resend_unlock_instructions")%></h2>
|
2
|
+
|
3
|
+
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
|
4
|
+
<%= devise_error_messages! %>
|
5
|
+
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="actions">
|
12
|
+
<%= f.submit <%=t("devise.unlocks.new.resend_unlock_instructions")%> %>
|
13
|
+
|
14
|
+
<%= render "devise/shared/links" %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% if page.current? %>
|
2
|
+
<li class='active'>
|
3
|
+
<%= content_tag :a, page, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)) %>
|
4
|
+
</li>
|
5
|
+
<% else %>
|
6
|
+
<li>
|
7
|
+
<%= link_to page, url, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)) %>
|
8
|
+
</li>
|
9
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%= paginator.render do -%>
|
2
|
+
<ul class="pagination">
|
3
|
+
<%= first_page_tag unless current_page.first? %>
|
4
|
+
<%= prev_page_tag unless current_page.first? %>
|
5
|
+
<% each_page do |page| -%>
|
6
|
+
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
7
|
+
<%= page_tag page %>
|
8
|
+
<% elsif !page.was_truncated? -%>
|
9
|
+
<%= gap_tag %>
|
10
|
+
<% end -%>
|
11
|
+
<% end -%>
|
12
|
+
<%= next_page_tag unless current_page.last? %>
|
13
|
+
<%= last_page_tag unless current_page.last? %>
|
14
|
+
</ul>
|
15
|
+
<% end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%# Rails flash messages styled for Bootstrap 3.0 %>
|
2
|
+
<% flash.each do |name, msg| %>
|
3
|
+
<% if msg.is_a?(String) %>
|
4
|
+
<div class="alert alert-<%= name == "notice" ? "success" : "danger" %>">
|
5
|
+
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
6
|
+
<%= content_tag :div, msg, :id => "flash_#{name}" %>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<nav class="navbar navbar-inverse">
|
2
|
+
<div class="container">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<% if user_signed_in? %>
|
11
|
+
<%= link_to t(:dashboard), inside_path, class: 'navbar-brand' %>
|
12
|
+
<%end%>
|
13
|
+
</div>
|
14
|
+
<div class="collapse navbar-collapse">
|
15
|
+
<ul class="nav navbar-nav">
|
16
|
+
<%= render 'layouts/navigation_links' %>
|
17
|
+
</ul>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</nav>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
-# .container-fluid
|
2
|
+
-# .navbar-header
|
3
|
+
-# %button.navbar-toggle.collapsed{ type: 'button', data: { toggle: 'collapse', target: '#secondary-navigation' }, aria: {expanded: 'false', controls: 'navbar'} }
|
4
|
+
-# %span.sr-only= t('admin.toggle_navigation')
|
5
|
+
-# %span.icon-bar
|
6
|
+
-# %span.icon-bar
|
7
|
+
-# %span.icon-bar
|
8
|
+
-# - # Added support for app name setting (falling back if not existing to standard rails_admin behaviour)
|
9
|
+
-# %a.navbar-brand.pjax{href: dashboard_path}
|
10
|
+
-# = Settings.app_name rescue (_get_plugin_name[0] || 'Rails')
|
11
|
+
-# %small= _get_plugin_name[1] || 'Admin'
|
12
|
+
-# .navbar-collapse.collapse#secondary-navigation
|
13
|
+
-# = render partial: 'layouts/rails_admin/secondary_navigation'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
- if _current_user
|
2
|
+
-# %ul.sidebar-nav
|
3
|
+
%li.dropdown-header=t :current_user
|
4
|
+
- if user_link = edit_user_link
|
5
|
+
%li.edit_user_root_link= user_link
|
6
|
+
- if logout_path.present?
|
7
|
+
%li=link_to content_tag('span', t('admin.misc.log_out'), class: 'label label-danger'), logout_path, method: logout_method
|
@@ -0,0 +1,59 @@
|
|
1
|
+
!!! 5
|
2
|
+
%html{lang: I18n.locale}
|
3
|
+
%head
|
4
|
+
%meta{content: "IE=edge", "http-equiv" => "X-UA-Compatible"}
|
5
|
+
%meta{content: "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
6
|
+
%meta{name: "viewport", content: "width=device-width, initial-scale=1"}
|
7
|
+
%meta{content: "NONE,NOARCHIVE", name: "robots"}
|
8
|
+
= csrf_meta_tag
|
9
|
+
%style{media: "screen"}
|
10
|
+
div#sidebar-wrapper div.sidebar-nav li.dropdown-header { padding-left: 0px }
|
11
|
+
div.sub-menu-container li.sub-menu a.pjax { padding-left: 0px }
|
12
|
+
div#wrapper div#sidebar-wrapper { overflow: hidden }
|
13
|
+
|
14
|
+
= stylesheet_link_tag "rails_admin/rails_admin.css", media: :all
|
15
|
+
= javascript_include_tag "rails_admin/rails_admin.js"
|
16
|
+
|
17
|
+
= favicon_link_tag 'apple-touch-icon.png', rel: 'apple-touch-icon', sizes: "180x180"
|
18
|
+
= favicon_link_tag 'favicon-32x32.png', rel: 'icon', sizes: "32x32"
|
19
|
+
= favicon_link_tag 'favicon-16x16.png', rel: 'icon', sizes: "16x16"
|
20
|
+
= favicon_link_tag 'safari-pinned-tab.svg', rel: 'mask-icon', color: "#5bbad5"
|
21
|
+
%body.rails_admin
|
22
|
+
#admin-js{:'data-i18n-options' => I18n.t("admin.js").to_json}
|
23
|
+
-# Initialize JS simple i18n
|
24
|
+
:javascript
|
25
|
+
RailsAdmin.I18n.init('#{I18n.locale}', document.getElementById("admin-js").dataset.i18nOptions);
|
26
|
+
#loading.label.label-warning{style: 'display:none; position:fixed; right:20px; bottom:20px; z-index:100000'}= t('admin.loading')
|
27
|
+
-# %nav.navbar.navbar-default.navbar-fixed-top
|
28
|
+
-# = render "layouts/rails_admin/navigation"
|
29
|
+
#wrapper
|
30
|
+
#sidebar-wrapper
|
31
|
+
.sidebar-nav
|
32
|
+
= render "layouts/rails_admin/secondary_navigation"
|
33
|
+
= render "layouts/rails_admin/sidebar_navigation"
|
34
|
+
= render "layouts/rails_admin/user_navigation"
|
35
|
+
#page-content-wrapper
|
36
|
+
.container-fluid
|
37
|
+
.row
|
38
|
+
.col-lg-12
|
39
|
+
%button#sidebar-collapse{href: "#menu-toggle"}
|
40
|
+
%i.fa.fa-bars.fa-2x
|
41
|
+
-# %a#app-name.pjax{href: dashboard_path}
|
42
|
+
%span#app-name
|
43
|
+
= Settings.app_name rescue "Thecore"
|
44
|
+
.content{:'data-pjax-container' => true}
|
45
|
+
= render template: 'layouts/rails_admin/pjax'
|
46
|
+
= render "rails_admin/main/modal_interaction"
|
47
|
+
-# -# Initialize JS simple i18n
|
48
|
+
-# :javascript
|
49
|
+
-# RailsAdmin.I18n.init('#{I18n.locale}', JSON.parse("#{j I18n.t("admin.js").to_json}"))
|
50
|
+
-# %body.rails_admin
|
51
|
+
-# #loading.label.label-warning{style: 'display:none; position:fixed; right:20px; bottom:20px; z-index:100000'}= t('admin.loading')
|
52
|
+
-# %nav.navbar.navbar-default.navbar-fixed-top
|
53
|
+
-# = render "layouts/rails_admin/navigation"
|
54
|
+
-# .container-fluid
|
55
|
+
-# .row
|
56
|
+
-# .col-sm-3.col-md-2.sidebar-nav
|
57
|
+
-# = render "layouts/rails_admin/sidebar_navigation"
|
58
|
+
-# .col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2
|
59
|
+
-# .content{:'data-pjax-container' => true}= render template: 'layouts/rails_admin/pjax'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
:javascript
|
2
|
+
$('.nav.nav-pills li.active').removeClass('active');
|
3
|
+
$('.nav.nav-pills li[data-model="#{@abstract_model.to_param}"]').addClass('active');
|
4
|
+
$(window).off('keydown');
|
5
|
+
|
6
|
+
- # Integration of the rails_admin_settings gem, if not available, it rescues to the normal naming
|
7
|
+
%title= "#{(@abstract_model.try(:pretty_name) || @page_name)} | #{Settings.app_name rescue ([_get_plugin_name[0] || 'Rails', _get_plugin_name[1] || 'Admin'].join(' '))}"
|
8
|
+
.page-header
|
9
|
+
%h1= @page_name
|
10
|
+
- flash && flash.each do |key, value|
|
11
|
+
.alert.alert-dismissible{class: flash_alert_class(key)}
|
12
|
+
%button.close{type: 'button', :'data-dismiss' => "alert"} ×
|
13
|
+
= value
|
14
|
+
- # if it's and abstract model, then is not a root model for sure (like the dashboard)
|
15
|
+
- # these actions (root ones) are the actions listed at the same level as the dashboard (not related to a model)
|
16
|
+
- if @abstract_model
|
17
|
+
= breadcrumb
|
18
|
+
.well.well-sm
|
19
|
+
%ul.nav.nav-pills
|
20
|
+
= menu_for((@abstract_model ? (@object.try(:persisted?) ? :member : :collection) : :root), @abstract_model, @object)
|
21
|
+
= content_for :contextual_tabs
|
22
|
+
.well.well-sm
|
23
|
+
= yield
|
24
|
+
- else
|
25
|
+
= yield
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="<%=I18n.locale%>">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
6
|
+
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
+
<title><%= Settings.app_name rescue "Thecore" %></title>
|
9
|
+
|
10
|
+
<%= tag("link", rel: "manifest", href: asset_path("manifest.json", skip_pipeline: true)) %>
|
11
|
+
<meta name="turbolinks-cache-control" content="no-cache">
|
12
|
+
<%= stylesheet_link_tag 'thecore', media: 'all', 'data-turbolinks-track' => true %>
|
13
|
+
<%= javascript_include_tag 'thecore', 'data-turbolinks-track' => true %>
|
14
|
+
|
15
|
+
<%= favicon_link_tag 'apple-touch-icon.png', rel: 'apple-touch-icon', sizes: "180x180" %>
|
16
|
+
<%= favicon_link_tag 'favicon-32x32.png', rel: 'icon', sizes: "32x32" %>
|
17
|
+
<%= favicon_link_tag 'favicon-16x16.png', rel: 'icon', sizes: "16x16" %>
|
18
|
+
<%= favicon_link_tag 'safari-pinned-tab.svg', rel: 'mask-icon', color: "#5bbad5" %>
|
19
|
+
<meta name="theme-color" content="#3b4e59">
|
20
|
+
|
21
|
+
<%= csrf_meta_tags %>
|
22
|
+
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
23
|
+
<!--[if lt IE 9]> <%= javascript_include_tag "ie" %> <![endif]-->
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<div class="jumbotron vertical-center">
|
27
|
+
<div class="container">
|
28
|
+
<div class="col-md-4 col-md-offset-4 text-center">
|
29
|
+
<img class="main-menu-app-logo" style="width: 25%; max-width: 152px" src="<%= image_url('logo.png') %>"/>
|
30
|
+
</div>
|
31
|
+
<%- unless flash.empty? %>
|
32
|
+
<div class="col-md-4 col-md-offset-4" style="margin-top: 1em;">
|
33
|
+
<%= render partial: 'shared/flash' %>
|
34
|
+
</div>
|
35
|
+
<%-end%>
|
36
|
+
<%= yield %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<%= render 'layouts/footer' %>
|
41
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<% title("Contact") %>
|
2
|
+
<h1 class="page-title">Contact</h1>
|
3
|
+
|
4
|
+
<div class="row">
|
5
|
+
<div class="col-sm-6">
|
6
|
+
|
7
|
+
<%= form_tag email_confirmation_path, method: 'post', html: {role: "form"} do %>
|
8
|
+
|
9
|
+
<% if current_user && current_user.username %>
|
10
|
+
<%= hidden_field_tag :name, current_user.username %>
|
11
|
+
<%else%>
|
12
|
+
<div class="form-group">
|
13
|
+
<%= label_tag :name, "Your name" %>
|
14
|
+
<div class="row">
|
15
|
+
<div class="col-xs-12">
|
16
|
+
<%= text_field_tag :name, @name, placeholder: "Enter your name...", :autofocus => true, class: "form-control" %>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<%end%>
|
21
|
+
|
22
|
+
<% if current_user && current_user.email %>
|
23
|
+
<%= hidden_field_tag :email, current_user.email %>
|
24
|
+
<%else%>
|
25
|
+
<div class="form-group">
|
26
|
+
<%= label_tag :email, "Your email" %>
|
27
|
+
<div class="row">
|
28
|
+
<div class="col-xs-12">
|
29
|
+
<%= text_field_tag :email, @email, placeholder: "Enter your email...", class: "form-control" %>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
<%end%>
|
34
|
+
|
35
|
+
<div class="form-group">
|
36
|
+
<%= label_tag :message, "Your message" %>
|
37
|
+
<div class="row">
|
38
|
+
<div class="col-xs-12">
|
39
|
+
<%= text_area_tag :message, @message, placeholder: "Enter your message...", rows: 10, class: "form-control" %>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div class="row">
|
45
|
+
<div class="col-xs-12 padded">
|
46
|
+
<button class='btn btn-primary'>
|
47
|
+
<i class='fa fa-envelope'></i> Send
|
48
|
+
</button>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
<% end %>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
</div>
|