Initial commit
This commit is contained in:
14
app/views/admin/employers/_form.html.erb
Normal file
14
app/views/admin/employers/_form.html.erb
Normal file
@@ -0,0 +1,14 @@
|
||||
<h1>Completely custom form</h1>
|
||||
|
||||
<%= semantic_form_for [:admin, @employer] do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :name, as: :important %>
|
||||
<%= f.input :logo_url %>
|
||||
<%= f.input :short_name %>
|
||||
<%= f.input :short_code %>
|
||||
<%= f.input :status, as: :select, collection: ["active","inactive"], include_blank: false %>
|
||||
<% end %>
|
||||
<%= f.actions %>
|
||||
<% end %>
|
||||
|
||||
|
||||
16
app/views/layouts/application.html.erb
Normal file
16
app/views/layouts/application.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ssrconcept</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
13
app/views/layouts/mailer.html.erb
Normal file
13
app/views/layouts/mailer.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
/* Email styles need to be inline */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
1
app/views/layouts/mailer.text.erb
Normal file
1
app/views/layouts/mailer.text.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= yield %>
|
||||
227
app/views/layouts/rails_admin/application.html.erb
Normal file
227
app/views/layouts/rails_admin/application.html.erb
Normal file
File diff suppressed because one or more lines are too long
49
app/views/layouts/rails_admin/original_application.html.erb
Normal file
49
app/views/layouts/rails_admin/original_application.html.erb
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" "http-equiv"="Content-Type">
|
||||
<meta content="NONE,NOARCHIVE" name="robots">
|
||||
<%= csrf_meta_tag %>
|
||||
<%= stylesheet_link_tag "rails_admin/rails_admin.css", :media => :all %>
|
||||
<%= javascript_include_tag "rails_admin/rails_admin.js" %>
|
||||
</head>
|
||||
<body class="rails_admin">
|
||||
<div id="loading" class="label label-warning" style="display:none; position:fixed; right:20px; bottom:20px; z-index:100000">
|
||||
<%= t('admin.loading') %>
|
||||
</div>
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<%= link_to dashboard_path, class: "brand pjax" do %>
|
||||
<%= _get_plugin_name[0] || 'Rails' %>
|
||||
<small><%= _get_plugin_name[1] || 'Admin' %>
|
||||
<% end %>
|
||||
<div class="nav-collapse">
|
||||
<%= render :partial => 'layouts/rails_admin/secondary_navigation' %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
<ul class="nav nav-list">
|
||||
<%= main_navigation %>
|
||||
</ul>
|
||||
<ul class="nav nav-list">
|
||||
<%= static_navigation %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div class="row-fluid">
|
||||
<div class="content" data-pjax-container="1">
|
||||
<%= render :template => 'layouts/rails_admin/pjax' %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
app/views/rails_admin/employers/_form.html.erb
Normal file
13
app/views/rails_admin/employers/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= errors_summary_for broadcast %>
|
||||
|
||||
|
||||
<%= bootstrap_form_with model: model, local: true do |form| %>
|
||||
V <%= form.text_field :name %>
|
||||
<%= form.time_zone_select(:shoot_location_time_zone, nil, label: "Time zone of shoot location") %> <div class="row align-items-center text-center mt-4">
|
||||
<%= link_to t("shared.cancel"), [project, :broadcasts], class: "col-3 text-reset" %>
|
||||
<div class="col-9">
|
||||
<%= form.submit class: class_string("btn btn-block", ["btn-success", "btn-primary"] => broadcast.new_record?), data: { disable_with: t("shared.disable_with") } %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user