dhatu 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +114 -0
- data/Rakefile +36 -0
- data/app/assets/config/dhatu_manifest.js +2 -0
- data/app/assets/javascripts/dhatu/application.js +13 -0
- data/app/assets/stylesheets/dhatu/application.css +15 -0
- data/app/controllers/dhatu/application_controller.rb +25 -0
- data/app/controllers/dhatu/blog_posts_controller.rb +84 -0
- data/app/controllers/dhatu/contact_informations_controller.rb +84 -0
- data/app/controllers/dhatu/dashboard_controller.rb +24 -0
- data/app/controllers/dhatu/events_controller.rb +84 -0
- data/app/controllers/dhatu/offers_controller.rb +84 -0
- data/app/controllers/dhatu/resource_controller.rb +13 -0
- data/app/controllers/dhatu/sections_controller.rb +83 -0
- data/app/controllers/dhatu/team_members_controller.rb +84 -0
- data/app/controllers/dhatu/testimonials_controller.rb +84 -0
- data/app/helpers/dhatu/application_helper.rb +4 -0
- data/app/jobs/dhatu/application_job.rb +4 -0
- data/app/mailers/dhatu/application_mailer.rb +6 -0
- data/app/models/dhatu/application_record.rb +8 -0
- data/app/models/dhatu/blog_post.rb +62 -0
- data/app/models/dhatu/contact_information.rb +88 -0
- data/app/models/dhatu/event.rb +56 -0
- data/app/models/dhatu/offer.rb +55 -0
- data/app/models/dhatu/section.rb +82 -0
- data/app/models/dhatu/team_member.rb +59 -0
- data/app/models/dhatu/testimonial.rb +57 -0
- data/app/views/dhatu/blog_posts/_form.html.erb +42 -0
- data/app/views/dhatu/blog_posts/_index.html.erb +58 -0
- data/app/views/dhatu/blog_posts/_row.html.erb +28 -0
- data/app/views/dhatu/blog_posts/_show.html.erb +120 -0
- data/app/views/dhatu/blog_posts/index.html.erb +56 -0
- data/app/views/dhatu/contact_informations/_form.html.erb +104 -0
- data/app/views/dhatu/contact_informations/_index.html.erb +51 -0
- data/app/views/dhatu/contact_informations/_row.html.erb +26 -0
- data/app/views/dhatu/contact_informations/_show.html.erb +150 -0
- data/app/views/dhatu/contact_informations/index.html.erb +46 -0
- data/app/views/dhatu/dashboard/_index.html.erb +58 -0
- data/app/views/dhatu/dashboard/index.html.erb +18 -0
- data/app/views/dhatu/events/_form.html.erb +40 -0
- data/app/views/dhatu/events/_index.html.erb +58 -0
- data/app/views/dhatu/events/_row.html.erb +28 -0
- data/app/views/dhatu/events/_show.html.erb +120 -0
- data/app/views/dhatu/events/index.html.erb +45 -0
- data/app/views/dhatu/offers/_form.html.erb +39 -0
- data/app/views/dhatu/offers/_index.html.erb +57 -0
- data/app/views/dhatu/offers/_row.html.erb +28 -0
- data/app/views/dhatu/offers/_show.html.erb +118 -0
- data/app/views/dhatu/offers/index.html.erb +46 -0
- data/app/views/dhatu/sections/_form.html.erb +60 -0
- data/app/views/dhatu/sections/_index.html.erb +53 -0
- data/app/views/dhatu/sections/_row.html.erb +25 -0
- data/app/views/dhatu/sections/_show.html.erb +152 -0
- data/app/views/dhatu/sections/index.html.erb +53 -0
- data/app/views/dhatu/team_members/_form.html.erb +56 -0
- data/app/views/dhatu/team_members/_index.html.erb +62 -0
- data/app/views/dhatu/team_members/_row.html.erb +35 -0
- data/app/views/dhatu/team_members/_show.html.erb +93 -0
- data/app/views/dhatu/team_members/index.html.erb +46 -0
- data/app/views/dhatu/testimonials/_form.html.erb +36 -0
- data/app/views/dhatu/testimonials/_index.html.erb +64 -0
- data/app/views/dhatu/testimonials/_row.html.erb +36 -0
- data/app/views/dhatu/testimonials/_show.html.erb +133 -0
- data/app/views/dhatu/testimonials/index.html.erb +46 -0
- data/app/views/layouts/dhatu/application.html.erb +14 -0
- data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
- data/app/views/layouts/kuppayam/_header.html.erb +43 -0
- data/app/views/layouts/kuppayam/_navbar.html.erb +55 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +219 -0
- data/app/views/pattana/dashboard/_index.html.erb +35 -0
- data/config/routes.rb +63 -0
- data/db/master_data/features.csv +16 -0
- data/lib/dhatu.rb +5 -0
- data/lib/dhatu/engine.rb +31 -0
- data/lib/dhatu/factories.rb +7 -0
- data/lib/dhatu/version.rb +3 -0
- data/lib/tasks/dhatu/data.rake +91 -0
- data/lib/tasks/dhatu/master_data.rake +48 -0
- data/spec/dummy/spec/factories/blog_post.rb +48 -0
- data/spec/dummy/spec/factories/blog_post_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/blog_post_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/contact_information.rb +63 -0
- data/spec/dummy/spec/factories/event.rb +46 -0
- data/spec/dummy/spec/factories/event_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/event_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/offer.rb +43 -0
- data/spec/dummy/spec/factories/offer_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/offer_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/section.rb +50 -0
- data/spec/dummy/spec/factories/section_cover_image.rb +13 -0
- data/spec/dummy/spec/factories/section_gallery_image.rb +13 -0
- data/spec/dummy/spec/factories/team_member.rb +47 -0
- data/spec/dummy/spec/factories/test.jpg +0 -0
- data/spec/dummy/spec/factories/testimonial.rb +44 -0
- metadata +520 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<tr id="tr_section_<%= section.id %>">
|
2
|
+
|
3
|
+
<th scope="row" style="text-align: center;">
|
4
|
+
<%= serial_number(i) %>
|
5
|
+
</th>
|
6
|
+
|
7
|
+
<td class="display-image">
|
8
|
+
<%= display_thumbnail_small(section) %>
|
9
|
+
</td>
|
10
|
+
|
11
|
+
<td class="display-link"><%= link_to section.section_type, section_path(section), remote: true %></td>
|
12
|
+
|
13
|
+
<td class="display-link"><%= link_to section.title, section_path(section), remote: true %></td>
|
14
|
+
|
15
|
+
<td class="hidden-sm hidden-xs"><%= display_publishable_status(section) %></td>
|
16
|
+
|
17
|
+
<% if display_manage_links? %>
|
18
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(section) if display_edit_links? %></td>
|
19
|
+
|
20
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
21
|
+
<%= display_manage_links(section, @current_user) if display_delete_links? %>
|
22
|
+
</td>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
</tr>
|
@@ -0,0 +1,152 @@
|
|
1
|
+
<div id="div_section_show">
|
2
|
+
|
3
|
+
<div class="row">
|
4
|
+
|
5
|
+
<div class="col-md-3 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
6
|
+
<% if display_edit_links? %>
|
7
|
+
<%= edit_image(@section,
|
8
|
+
"cover_image.image.large.url",
|
9
|
+
upload_image_link(@section, :cover_image, nil ),
|
10
|
+
remove_image_link(@section, :cover_image, nil ),
|
11
|
+
image_options: {assoc_name: :cover_image }) %>
|
12
|
+
<% else %>
|
13
|
+
<%= display_image(@section, "cover_image.image.large.url", class: "img-inline", alt: @section.display_name) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
18
|
+
|
19
|
+
<%= theme_panel_heading(@section.title) %>
|
20
|
+
|
21
|
+
<%= theme_panel_sub_heading(@section.sub_title, "#") if @section.sub_title %>
|
22
|
+
|
23
|
+
<%= clear_tag(10) %>
|
24
|
+
|
25
|
+
<%= display_publishable_status(@section) %>
|
26
|
+
|
27
|
+
<%#= display_featured(@section) %>
|
28
|
+
|
29
|
+
<%= clear_tag(20) %>
|
30
|
+
|
31
|
+
<table class="table table-condensed table-bordered mb-20">
|
32
|
+
<tbody>
|
33
|
+
|
34
|
+
<tr>
|
35
|
+
<th style="width:25%">Button Text One</th>
|
36
|
+
<td style="width:25%"><%=@section.button_one_text %></td>
|
37
|
+
<th style="width:25%">Button Link One</th>
|
38
|
+
<td style="width:25%"><%=@section.button_one_link %></td>
|
39
|
+
</tr>
|
40
|
+
|
41
|
+
<tr>
|
42
|
+
<th style="width:25%">Button Text Two</th>
|
43
|
+
<td style="width:25%"><%=@section.button_two_text %></td>
|
44
|
+
<th style="width:25%">Button Link Two</th>
|
45
|
+
<td style="width:25%"><%=@section.button_two_link %></td>
|
46
|
+
</tr>
|
47
|
+
|
48
|
+
</tbody>
|
49
|
+
</table>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<% if display_manage_links? %>
|
53
|
+
<div class="col-md-3 col-sm-12 col-xs-12">
|
54
|
+
<%= display_manage_buttons(@section) %>
|
55
|
+
<%= display_publishable_buttons(@section) %>
|
56
|
+
</div>
|
57
|
+
<% end %>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
<hr>
|
62
|
+
|
63
|
+
<div class="visible-sm visible-xs mb-50"></div>
|
64
|
+
|
65
|
+
<%= clear_tag(20) %>
|
66
|
+
|
67
|
+
<ul class="nav nav-pills">
|
68
|
+
<li class="active">
|
69
|
+
<a href="#section_details" data-toggle="tab" aria-expanded="false">
|
70
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
71
|
+
<span class="hidden-xs">Offer Details</span>
|
72
|
+
</a>
|
73
|
+
</li>
|
74
|
+
|
75
|
+
<li class="">
|
76
|
+
<a href="#section_images" data-toggle="tab" aria-expanded="false">
|
77
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
78
|
+
<span class="hidden-xs">Images</span>
|
79
|
+
</a>
|
80
|
+
</li>
|
81
|
+
|
82
|
+
<li class="">
|
83
|
+
<a href="#technical_details" data-toggle="tab" aria-expanded="false">
|
84
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
85
|
+
<span class="hidden-xs">Technical Details</span>
|
86
|
+
</a>
|
87
|
+
</li>
|
88
|
+
</ul>
|
89
|
+
|
90
|
+
<div class="tab-content">
|
91
|
+
<div class="tab-pane active" id="section_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
92
|
+
|
93
|
+
<%= clear_tag(20) %>
|
94
|
+
<strong>Short Description</strong>
|
95
|
+
<%= raw(@section.short_description) %>
|
96
|
+
|
97
|
+
<%= clear_tag(20) %>
|
98
|
+
|
99
|
+
<strong>Long Description</strong>
|
100
|
+
<%= raw(@section.long_description) %>
|
101
|
+
<%= clear_tag(20) %>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
<div class="tab-pane" id="section_images" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
106
|
+
|
107
|
+
<%= clear_tag(20) %>
|
108
|
+
|
109
|
+
<div id="div_section_images_buttons">
|
110
|
+
<div class="row">
|
111
|
+
<div class="col-md-6">
|
112
|
+
<%= theme_button('Upload a New Image', 'refresh', upload_multiple_image_link(@section, :gallery_images, nil ), classes: "pull-left", btn_type: "white") %>
|
113
|
+
</div>
|
114
|
+
<div class="col-md-6">
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
<%= clear_tag(10) %>
|
119
|
+
|
120
|
+
<%= render :partial=>"kuppayam/images/multiple_images", locals: { images: @section.gallery_images } %>
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div class="tab-pane" id="technical_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
125
|
+
|
126
|
+
<%= clear_tag(20) %>
|
127
|
+
|
128
|
+
<div class="table-responsive">
|
129
|
+
<table class="table table-striped table-condensed table-bordered mb-60">
|
130
|
+
<tbody>
|
131
|
+
|
132
|
+
<tr>
|
133
|
+
<th>ID</th><td><%= @section.id %></td>
|
134
|
+
<th>Status</th><td><%= @section.status %></td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<th>Created At</th><td><%= @section.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @section.created_at %></td>
|
138
|
+
<th>Updated At</th><td><%= @section.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @section.updated_at %></td>
|
139
|
+
</tr>
|
140
|
+
|
141
|
+
</tbody>
|
142
|
+
</table>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
</div>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
|
149
|
+
|
150
|
+
<%= clear_tag %>
|
151
|
+
|
152
|
+
</div>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<div class="row">
|
2
|
+
|
3
|
+
<div class="col-md-12">
|
4
|
+
|
5
|
+
<ul class="nav nav-tabs nav-tabs-justified">
|
6
|
+
<% Dhatu::Section::STATUS.each do |key, value| %>
|
7
|
+
<li class="<%= @status == value ? 'active' : '' %>">
|
8
|
+
<%= link_to dhatu.sections_path(st: value), "aria-expanded" => "#{ @status == value ? 'true' : 'false' }" do %>
|
9
|
+
<span class="visible-xs"><i class="fa-gift"></i></span>
|
10
|
+
<span class="hidden-xs"><%= key %></span>
|
11
|
+
<% end %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
14
|
+
</ul>
|
15
|
+
|
16
|
+
<div class="tab-content">
|
17
|
+
<div class="tab-pane active">
|
18
|
+
|
19
|
+
<div id="div_section_action_buttons">
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-sm-6">
|
22
|
+
<%= theme_button('Add a Section', 'plus', dhatu.new_section_path(), classes: "pull-left mr-10", btn_type: "success") if @current_user.has_create_permission?(Dhatu::Section) %>
|
23
|
+
|
24
|
+
<%= theme_button('Refresh', 'refresh', dhatu.sections_path(st: @status), classes: "pull-left mr-10", btn_type: "white") %>
|
25
|
+
</div>
|
26
|
+
<div class="col-sm-6">
|
27
|
+
<%= search_form_kuppayam(Dhatu::Section, dhatu.sections_path(st: @status), text: @filters[:query]) %>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
<%= clear_tag(10) %>
|
33
|
+
|
34
|
+
<div id="div_section_index">
|
35
|
+
<%= render :partial=>"dhatu/sections/index" %>
|
36
|
+
</div>
|
37
|
+
<%= clear_tag(10) %>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<script type="text/javascript">
|
47
|
+
$('body').on('change', '#inp_section_type', function() {
|
48
|
+
var sectionType = $(this).val().replace(/ /g, '_').toUpperCase().slice(0, 63);
|
49
|
+
$('#inp_section_type').val(sectionType);
|
50
|
+
});
|
51
|
+
</script>
|
52
|
+
|
53
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<%= form_for(@team_member,
|
2
|
+
:url => (@team_member.new_record? ? dhatu.team_members_path : team_member_path),
|
3
|
+
:method => (@team_member.new_record? ? :post : :put),
|
4
|
+
:remote => true,
|
5
|
+
:html => {:id=>"form_team_member", :class=>"mb-0 form-horizontal"}) do |f| %>
|
6
|
+
|
7
|
+
<div id="team_member_form_error">
|
8
|
+
<%= @team_member.errors[:base].to_sentence %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="form-inputs m-15">
|
12
|
+
|
13
|
+
|
14
|
+
<!-- Name (string) -->
|
15
|
+
<%= theme_form_field(@team_member, :name, form_style: "top-bottom", html_options: { placeholder: "Dr. Alexander Grahambell"}) -%>
|
16
|
+
|
17
|
+
<!-- Designation (string) -->
|
18
|
+
<%= theme_form_field(@team_member, :designation, form_style: "top-bottom", html_options: { placeholder: "Vice President"}, required: false) -%>
|
19
|
+
|
20
|
+
<!-- Statement (text) -->
|
21
|
+
<%= theme_form_field(@team_member, :description, required: true, required: false, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") -%>
|
22
|
+
|
23
|
+
<div class="row">
|
24
|
+
<div class="col-md-4 pr-20">
|
25
|
+
<!-- Linked In Url (string) -->
|
26
|
+
<%= theme_form_field(@team_member, :linked_in_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
|
27
|
+
</div>
|
28
|
+
<div class="col-md-4 pl-20">
|
29
|
+
<!-- Google Plus Url (string) -->
|
30
|
+
<%= theme_form_field(@team_member, :google_plus_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div class="row">
|
35
|
+
<div class="col-md-4 pr-20">
|
36
|
+
<!-- Facebook Url (string) -->
|
37
|
+
<%= theme_form_field(@team_member, :facebook_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
|
38
|
+
</div>
|
39
|
+
<div class="col-md-4 pl-20">
|
40
|
+
<!-- Twitter Url (string) -->
|
41
|
+
<%= theme_form_field(@team_member, :twitter_url, form_style: "top-bottom", html_options: { type: :url, placeholder: ""}, required: false) -%>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div>
|
48
|
+
<%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
|
49
|
+
|
50
|
+
<%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<%= clear_tag %>
|
54
|
+
|
55
|
+
<% end %>
|
56
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table table-hover members-table middle-align">
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th style="text-align: center;width:5%">#</th>
|
6
|
+
<th style="text-align: center;width:100px"><i class="fa fa-photo"></i></th>
|
7
|
+
<th>Name</th>
|
8
|
+
<th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
|
9
|
+
<% if display_manage_links? %>
|
10
|
+
<th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
|
11
|
+
<% end %>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
14
|
+
<tbody>
|
15
|
+
<tr id="tr_team_member_0"></tr>
|
16
|
+
<% @team_members.each_with_index do |team_member, i| %>
|
17
|
+
|
18
|
+
<tr id="tr_team_member_<%= team_member.id %>">
|
19
|
+
|
20
|
+
<th scope="row" style="text-align: center;">
|
21
|
+
<%= serial_number(i) %>
|
22
|
+
</th>
|
23
|
+
|
24
|
+
<td class="display-image">
|
25
|
+
<%= display_thumbnail_small(
|
26
|
+
team_member,
|
27
|
+
method_name: "profile_image.image.small.url",
|
28
|
+
image_class: "img-circle",
|
29
|
+
image_width: "80",
|
30
|
+
image_height: "80") %>
|
31
|
+
</td>
|
32
|
+
|
33
|
+
<td class="display-link">
|
34
|
+
<%= link_to team_member.name, team_member_path(team_member), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
|
35
|
+
<%= team_member.designation %><br>
|
36
|
+
</td>
|
37
|
+
|
38
|
+
<td class="hidden-sm hidden-xs">
|
39
|
+
<%= display_publishable_status(team_member) %>
|
40
|
+
<%= display_featured(team_member) %>
|
41
|
+
</td>
|
42
|
+
|
43
|
+
<% if display_manage_links? %>
|
44
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(team_member) %></td>
|
45
|
+
|
46
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
47
|
+
<%= display_featurable_links(team_member) %>
|
48
|
+
<%= display_manage_links(team_member, @current_user) %>
|
49
|
+
</td>
|
50
|
+
<% end %>
|
51
|
+
|
52
|
+
</tr>
|
53
|
+
<% end %>
|
54
|
+
</tbody>
|
55
|
+
</table>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="row">
|
59
|
+
<div class="col-sm-12">
|
60
|
+
<%= paginate_kuppayam(@team_members) %>
|
61
|
+
</div>
|
62
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<tr id="tr_team_member_<%= team_member.id %>">
|
2
|
+
|
3
|
+
<th scope="row" style="text-align: center;">
|
4
|
+
<%= serial_number(i) %>
|
5
|
+
</th>
|
6
|
+
|
7
|
+
<td class="display-image">
|
8
|
+
<%= display_thumbnail_small(
|
9
|
+
team_member,
|
10
|
+
method_name: "profile_image.image.small.url",
|
11
|
+
image_class: "img-circle",
|
12
|
+
image_width: "80",
|
13
|
+
image_height: "80") %>
|
14
|
+
</td>
|
15
|
+
|
16
|
+
<td class="display-link">
|
17
|
+
<%= link_to team_member.name, team_member_path(team_member), remote: true, style: "color: darkgreen;font-size:16px;" %><br>
|
18
|
+
<%= team_member.designation %><br>
|
19
|
+
</td>
|
20
|
+
|
21
|
+
<td class="hidden-sm hidden-xs">
|
22
|
+
<%= display_publishable_status(team_member) %>
|
23
|
+
<%= display_featured(team_member) %>
|
24
|
+
</td>
|
25
|
+
|
26
|
+
<% if display_manage_links? %>
|
27
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(team_member) %></td>
|
28
|
+
|
29
|
+
<td class="action-links hidden-sm hidden-xs" style="width:10%">
|
30
|
+
<%= display_featurable_links(team_member) %>
|
31
|
+
<%= display_manage_links(team_member, @current_user) %>
|
32
|
+
</td>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
</tr>
|
@@ -0,0 +1,93 @@
|
|
1
|
+
<div id="div_team_member_show">
|
2
|
+
|
3
|
+
<div class="row">
|
4
|
+
|
5
|
+
<div class="col-md-3 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
6
|
+
<% if display_edit_links? %>
|
7
|
+
<%= edit_image(@team_member,
|
8
|
+
"profile_image.image.large.url",
|
9
|
+
upload_image_link(@team_member, :profile_image, nil ),
|
10
|
+
remove_image_link(@team_member, :profile_image, nil ),
|
11
|
+
image_options: {assoc_name: :profile_image, class: "img-circle img-inline userpic-32", width: "200", height: "200" }) %>
|
12
|
+
<% else %>
|
13
|
+
<%= display_image(@team_member, "profile_image.image.large.url", class: "img-inline", alt: @team_member.display_name) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="col-md-6 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
|
18
|
+
|
19
|
+
<%= theme_panel_heading(@team_member.display_name) %>
|
20
|
+
|
21
|
+
<%= theme_panel_sub_heading(@team_member.designation, "#") if @team_member.designation %>
|
22
|
+
|
23
|
+
<%= clear_tag(10) %>
|
24
|
+
|
25
|
+
<%= display_publishable_status(@team_member) %>
|
26
|
+
|
27
|
+
<%= display_featured(@team_member) %>
|
28
|
+
|
29
|
+
<%= clear_tag(20) %>
|
30
|
+
<%= raw(@team_member.description) %>
|
31
|
+
<%= clear_tag(20) %>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<% if display_manage_links? %>
|
36
|
+
<div class="col-md-3 col-sm-12 col-xs-12">
|
37
|
+
<%= display_manage_buttons(@team_member) %>
|
38
|
+
<%= display_publishable_buttons(@team_member) %>
|
39
|
+
<%= display_featurable_buttons(@team_member) %>
|
40
|
+
</div>
|
41
|
+
<% end %>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<hr>
|
46
|
+
|
47
|
+
<div class="visible-sm visible-xs mb-50"></div>
|
48
|
+
|
49
|
+
<%= clear_tag(20) %>
|
50
|
+
|
51
|
+
<ul class="nav nav-pills">
|
52
|
+
<li class="active">
|
53
|
+
<a href="#technical_details" data-toggle="tab" aria-expanded="false">
|
54
|
+
<span class="visible-xs"><i class="fa-database"></i></span>
|
55
|
+
<span class="hidden-xs">Technical Details</span>
|
56
|
+
</a>
|
57
|
+
</li>
|
58
|
+
</ul>
|
59
|
+
|
60
|
+
<div class="tab-content">
|
61
|
+
<div class="tab-pane active" id="technical_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
|
62
|
+
|
63
|
+
<%= clear_tag(20) %>
|
64
|
+
|
65
|
+
<div class="table-responsive">
|
66
|
+
<table class="table table-striped table-condensed table-bordered mb-60">
|
67
|
+
<tbody>
|
68
|
+
|
69
|
+
<tr>
|
70
|
+
<th>ID</th><td><%= @team_member.id %></td>
|
71
|
+
<th>Permalink</th><td><%#= @team_member.to_param %></td>
|
72
|
+
</tr>
|
73
|
+
<tr>
|
74
|
+
<th>Featured</th><td><%#= @team_member.featured %></td>
|
75
|
+
<th>Status</th><td><%= @team_member.status %></td>
|
76
|
+
</tr>
|
77
|
+
<tr>
|
78
|
+
<th>Created At</th><td><%= @team_member.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @team_member.created_at %></td>
|
79
|
+
<th>Updated At</th><td><%= @team_member.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @team_member.updated_at %></td>
|
80
|
+
</tr>
|
81
|
+
|
82
|
+
</tbody>
|
83
|
+
</table>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
|
90
|
+
|
91
|
+
<%= clear_tag %>
|
92
|
+
|
93
|
+
</div>
|