dhatu 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +114 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/config/dhatu_manifest.js +2 -0
  6. data/app/assets/javascripts/dhatu/application.js +13 -0
  7. data/app/assets/stylesheets/dhatu/application.css +15 -0
  8. data/app/controllers/dhatu/application_controller.rb +25 -0
  9. data/app/controllers/dhatu/blog_posts_controller.rb +84 -0
  10. data/app/controllers/dhatu/contact_informations_controller.rb +84 -0
  11. data/app/controllers/dhatu/dashboard_controller.rb +24 -0
  12. data/app/controllers/dhatu/events_controller.rb +84 -0
  13. data/app/controllers/dhatu/offers_controller.rb +84 -0
  14. data/app/controllers/dhatu/resource_controller.rb +13 -0
  15. data/app/controllers/dhatu/sections_controller.rb +83 -0
  16. data/app/controllers/dhatu/team_members_controller.rb +84 -0
  17. data/app/controllers/dhatu/testimonials_controller.rb +84 -0
  18. data/app/helpers/dhatu/application_helper.rb +4 -0
  19. data/app/jobs/dhatu/application_job.rb +4 -0
  20. data/app/mailers/dhatu/application_mailer.rb +6 -0
  21. data/app/models/dhatu/application_record.rb +8 -0
  22. data/app/models/dhatu/blog_post.rb +62 -0
  23. data/app/models/dhatu/contact_information.rb +88 -0
  24. data/app/models/dhatu/event.rb +56 -0
  25. data/app/models/dhatu/offer.rb +55 -0
  26. data/app/models/dhatu/section.rb +82 -0
  27. data/app/models/dhatu/team_member.rb +59 -0
  28. data/app/models/dhatu/testimonial.rb +57 -0
  29. data/app/views/dhatu/blog_posts/_form.html.erb +42 -0
  30. data/app/views/dhatu/blog_posts/_index.html.erb +58 -0
  31. data/app/views/dhatu/blog_posts/_row.html.erb +28 -0
  32. data/app/views/dhatu/blog_posts/_show.html.erb +120 -0
  33. data/app/views/dhatu/blog_posts/index.html.erb +56 -0
  34. data/app/views/dhatu/contact_informations/_form.html.erb +104 -0
  35. data/app/views/dhatu/contact_informations/_index.html.erb +51 -0
  36. data/app/views/dhatu/contact_informations/_row.html.erb +26 -0
  37. data/app/views/dhatu/contact_informations/_show.html.erb +150 -0
  38. data/app/views/dhatu/contact_informations/index.html.erb +46 -0
  39. data/app/views/dhatu/dashboard/_index.html.erb +58 -0
  40. data/app/views/dhatu/dashboard/index.html.erb +18 -0
  41. data/app/views/dhatu/events/_form.html.erb +40 -0
  42. data/app/views/dhatu/events/_index.html.erb +58 -0
  43. data/app/views/dhatu/events/_row.html.erb +28 -0
  44. data/app/views/dhatu/events/_show.html.erb +120 -0
  45. data/app/views/dhatu/events/index.html.erb +45 -0
  46. data/app/views/dhatu/offers/_form.html.erb +39 -0
  47. data/app/views/dhatu/offers/_index.html.erb +57 -0
  48. data/app/views/dhatu/offers/_row.html.erb +28 -0
  49. data/app/views/dhatu/offers/_show.html.erb +118 -0
  50. data/app/views/dhatu/offers/index.html.erb +46 -0
  51. data/app/views/dhatu/sections/_form.html.erb +60 -0
  52. data/app/views/dhatu/sections/_index.html.erb +53 -0
  53. data/app/views/dhatu/sections/_row.html.erb +25 -0
  54. data/app/views/dhatu/sections/_show.html.erb +152 -0
  55. data/app/views/dhatu/sections/index.html.erb +53 -0
  56. data/app/views/dhatu/team_members/_form.html.erb +56 -0
  57. data/app/views/dhatu/team_members/_index.html.erb +62 -0
  58. data/app/views/dhatu/team_members/_row.html.erb +35 -0
  59. data/app/views/dhatu/team_members/_show.html.erb +93 -0
  60. data/app/views/dhatu/team_members/index.html.erb +46 -0
  61. data/app/views/dhatu/testimonials/_form.html.erb +36 -0
  62. data/app/views/dhatu/testimonials/_index.html.erb +64 -0
  63. data/app/views/dhatu/testimonials/_row.html.erb +36 -0
  64. data/app/views/dhatu/testimonials/_show.html.erb +133 -0
  65. data/app/views/dhatu/testimonials/index.html.erb +46 -0
  66. data/app/views/layouts/dhatu/application.html.erb +14 -0
  67. data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
  68. data/app/views/layouts/kuppayam/_header.html.erb +43 -0
  69. data/app/views/layouts/kuppayam/_navbar.html.erb +55 -0
  70. data/app/views/layouts/kuppayam/_sidebar.html.erb +219 -0
  71. data/app/views/pattana/dashboard/_index.html.erb +35 -0
  72. data/config/routes.rb +63 -0
  73. data/db/master_data/features.csv +16 -0
  74. data/lib/dhatu.rb +5 -0
  75. data/lib/dhatu/engine.rb +31 -0
  76. data/lib/dhatu/factories.rb +7 -0
  77. data/lib/dhatu/version.rb +3 -0
  78. data/lib/tasks/dhatu/data.rake +91 -0
  79. data/lib/tasks/dhatu/master_data.rake +48 -0
  80. data/spec/dummy/spec/factories/blog_post.rb +48 -0
  81. data/spec/dummy/spec/factories/blog_post_cover_image.rb +13 -0
  82. data/spec/dummy/spec/factories/blog_post_gallery_image.rb +13 -0
  83. data/spec/dummy/spec/factories/contact_information.rb +63 -0
  84. data/spec/dummy/spec/factories/event.rb +46 -0
  85. data/spec/dummy/spec/factories/event_cover_image.rb +13 -0
  86. data/spec/dummy/spec/factories/event_gallery_image.rb +13 -0
  87. data/spec/dummy/spec/factories/offer.rb +43 -0
  88. data/spec/dummy/spec/factories/offer_cover_image.rb +13 -0
  89. data/spec/dummy/spec/factories/offer_gallery_image.rb +13 -0
  90. data/spec/dummy/spec/factories/section.rb +50 -0
  91. data/spec/dummy/spec/factories/section_cover_image.rb +13 -0
  92. data/spec/dummy/spec/factories/section_gallery_image.rb +13 -0
  93. data/spec/dummy/spec/factories/team_member.rb +47 -0
  94. data/spec/dummy/spec/factories/test.jpg +0 -0
  95. data/spec/dummy/spec/factories/testimonial.rb +44 -0
  96. metadata +520 -0
@@ -0,0 +1,150 @@
1
+ <div id="div_contact_information_show">
2
+
3
+ <div class="row">
4
+
5
+ <div class="col-md-9 col-sm-12 col-xs-12" style="border-right:1px solid #f1f1f1;">
6
+
7
+ <%= theme_panel_heading(@contact_information.title) %>
8
+
9
+ <%= clear_tag(10) %>
10
+ <%= display_publishable_status(@contact_information) %>
11
+ <%= display_featured(@contact_information) %>
12
+ <%= clear_tag(20) %>
13
+
14
+ <div class="table-responsive">
15
+ <table class="table table-striped table-condensed table-bordered">
16
+ <tbody>
17
+ <tr>
18
+ <th style="width:25%">Address 1</th>
19
+ <td style="width:25%"><%= @contact_information.address_1 if @contact_information.address_1 %></td>
20
+
21
+ <th style="width:25%">Address 2</th>
22
+ <td style="width:25%"><%= @contact_information.address_2 if @contact_information.address_2 %></td>
23
+ </tr>
24
+
25
+ <tr>
26
+ <th style="width:25%">Address 3</th>
27
+ <td style="width:25%"><%= @contact_information.address_3 if @contact_information.address_3 %></td>
28
+
29
+ <th style="width:25%"></th>
30
+ <td style="width:25%"></td>
31
+ </tr>
32
+
33
+ <tr>
34
+ <th style="width:25%">Email</th>
35
+ <td style="width:25%"><%= @contact_information.email if @contact_information.email %></td>
36
+
37
+ <th style="width:25%">Landline</th>
38
+ <td style="width:25%"><%= @contact_information.landline if @contact_information.landline %></td>
39
+ </tr>
40
+
41
+ <tr>
42
+ <th style="width:25%">Fax</th>
43
+ <td style="width:25%"><%= @contact_information.fax if @contact_information.fax %></td>
44
+
45
+ <th style="width:25%">Mobile</th>
46
+ <td style="width:25%"><%= @contact_information.mobile if @contact_information.mobile %></td>
47
+ </tr>
48
+
49
+ <tr>
50
+ <th style="width:25%">Facebook</th>
51
+ <td style="width:25%"><%= @contact_information.facebook if @contact_information.facebook %></td>
52
+
53
+ <th style="width:25%">Twitter</th>
54
+ <td style="width:25%"><%= @contact_information.twitter if @contact_information.twitter %></td>
55
+ </tr>
56
+
57
+ <tr>
58
+ <th style="width:25%">Google +</th>
59
+ <td style="width:25%"><%= @contact_information.google_plus if @contact_information.google_plus %></td>
60
+
61
+ <th style="width:25%">LinkedIn</th>
62
+ <td style="width:25%"><%= @contact_information.linked_in if @contact_information.linked_in %></td>
63
+ </tr>
64
+
65
+ <tr>
66
+ <th style="width:25%">Youtube</th>
67
+ <td style="width:25%"><%= @contact_information.youtube if @contact_information.youtube %></td>
68
+
69
+ <th style="width:25%">Instagram</th>
70
+ <td style="width:25%"><%= @contact_information.instagram if @contact_information.instagram %></td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <th style="width:25%">Tumblr</th>
75
+ <td style="width:25%"><%= @contact_information.tumblr if @contact_information.tumblr %></td>
76
+
77
+ <th style="width:25%">Instagram</th>
78
+ <td style="width:25%"><%= @contact_information.pinterest if @contact_information.pinterest %></td>
79
+ </tr>
80
+
81
+ <tr>
82
+ <th style="width:25%">Blog</th>
83
+ <td style="width:25%"><%= @contact_information.blog if @contact_information.blog %></td>
84
+
85
+ <th style="width:25%"></th>
86
+ <td style="width:25%"></td>
87
+ </tr>
88
+ </tbody>
89
+ </table>
90
+ </div>
91
+
92
+ <%= clear_tag(20) %>
93
+
94
+ </div>
95
+
96
+ <% if display_manage_links? %>
97
+ <div class="col-md-3 col-sm-12 col-xs-12">
98
+ <%= display_manage_buttons(@contact_information) %>
99
+ <%= display_publishable_buttons(@contact_information) %>
100
+ <%= display_featurable_buttons(@contact_information) %>
101
+ </div>
102
+ <% end %>
103
+
104
+ </div>
105
+
106
+ <%= clear_tag(10) %>
107
+
108
+ <ul class="nav nav-pills">
109
+ <li class="active">
110
+ <a href="#technical_details" data-toggle="tab" aria-expanded="false">
111
+ <span class="visible-xs"><i class="fa-database"></i></span>
112
+ <span class="hidden-xs">Technical Details</span>
113
+ </a>
114
+ </li>
115
+ </ul>
116
+
117
+ <div class="tab-content">
118
+ <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;">
119
+
120
+ <%= clear_tag(20) %>
121
+
122
+ <div class="table-responsive">
123
+ <table class="table table-striped table-condensed table-bordered mb-60">
124
+ <tbody>
125
+
126
+ <tr>
127
+ <th>ID</th><td><%= @contact_information.id %></td>
128
+ <th>Permalink</th><td><%#= @contact_information.to_param %></td>
129
+ </tr>
130
+ <tr>
131
+ <th>Featured</th><td><%#= @contact_information.featured %></td>
132
+ <th>Status</th><td><%= @contact_information.status %></td>
133
+ </tr>
134
+ <tr>
135
+ <th>Created At</th><td><%= @contact_information.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @contact_information.created_at %></td>
136
+ <th>Updated At</th><td><%= @contact_information.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @contact_information.updated_at %></td>
137
+ </tr>
138
+
139
+ </tbody>
140
+ </table>
141
+ </div>
142
+
143
+ </div>
144
+ </div>
145
+
146
+ <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
147
+
148
+ <%= clear_tag %>
149
+
150
+ </div>
@@ -0,0 +1,46 @@
1
+ <div class="row">
2
+
3
+ <div class="col-md-12">
4
+
5
+ <ul class="nav nav-tabs nav-tabs-justified">
6
+ <% Dhatu::ContactInformation::STATUS.each do |key, value| %>
7
+ <li class="<%= @status == value ? 'active' : '' %>">
8
+ <%= link_to contact_informations_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_contact_information_action_buttons">
20
+
21
+ <div class="row">
22
+ <div class="col-sm-6">
23
+ <%= theme_button('Add a Contact Information', 'plus', new_contact_information_path(), classes: "pull-left", btn_type: "success") if @current_user.has_create_permission?(Dhatu::ContactInformation) %>
24
+
25
+ <%= theme_button('Refresh', 'refresh', contact_informations_path(st: @status), classes: "pull-left ml-10", btn_type: "white") %>
26
+ </div>
27
+ <div class="col-sm-6">
28
+ <%= search_form_kuppayam(Dhatu::Offer, contact_informations_path(st: @status), text: @filters[:query]) %>
29
+ </div>
30
+ </div>
31
+
32
+ </div>
33
+ <%= clear_tag(10) %>
34
+
35
+ <div id="div_contact_information_index">
36
+ <%= render :partial=>"dhatu/contact_informations/index" %>
37
+ </div>
38
+ <%= clear_tag(10) %>
39
+
40
+ </div>
41
+ </div>
42
+
43
+ </div>
44
+
45
+ </div>
46
+
@@ -0,0 +1,58 @@
1
+ <%
2
+ dhatu_items = {
3
+ sections: {
4
+ text: "Sections",
5
+ icon_class: "fa-reorder",
6
+ url: dhatu.sections_url,
7
+ has_permission: @current_user.has_read_permission?(Dhatu::Section)
8
+ },
9
+ blog_posts: {
10
+ text: "Blog",
11
+ icon_class: "fa-newspaper-o",
12
+ url: dhatu.blog_posts_url,
13
+ has_permission: @current_user.has_read_permission?(Dhatu::BlogPost)
14
+ },
15
+ contact_informations: {
16
+ text: "Contact Info",
17
+ icon_class: "fa-phone-square",
18
+ url: dhatu.contact_informations_url,
19
+ has_permission: @current_user.has_read_permission?(Dhatu::ContactInformation)
20
+ },
21
+ offers: {
22
+ text: "Offers",
23
+ icon_class: "fa-gift",
24
+ url: dhatu.offers_url,
25
+ has_permission: @current_user.has_read_permission?(Dhatu::Offer)
26
+ },
27
+ events: {
28
+ text: "Events",
29
+ icon_class: "fa-calendar",
30
+ url: dhatu.events_url,
31
+ has_permission: @current_user.has_read_permission?(Dhatu::Event)
32
+ },
33
+ testimonials: {
34
+ text: "Testimonials",
35
+ icon_class: "fa-comment",
36
+ url: dhatu.testimonials_url,
37
+ has_permission: @current_user.has_read_permission?(Dhatu::Testimonial)
38
+ },
39
+ team: {
40
+ text: "Team",
41
+ icon_class: "fa-group",
42
+ url: dhatu.team_members_url,
43
+ has_permission: @current_user.has_read_permission?(Dhatu::TeamMember)
44
+ }
45
+ }
46
+ %>
47
+
48
+ <% if (dhatu_items.map{|x, y| y[:has_permission] }).compact.uniq.any? %>
49
+
50
+ <h3 class="text-gray mt-50 mb-10">
51
+ Website Elements <br>
52
+ <small class="text-muted">Manage All Elements of your websites and much more ...</small>
53
+ </h3>
54
+ <hr class="mb-30" style="border-top:1px solid #ddd;">
55
+
56
+ <%= render partial: "/layouts/dashboard/items", locals: { items: dhatu_items } %>
57
+
58
+ <% end %>
@@ -0,0 +1,18 @@
1
+ <%= render partial: "index" %>
2
+
3
+ <!-- Manage Users -->
4
+ <%= render partial: "usman/dashboard/index" %>
5
+ <%= render partial: "usman/dashboard/super_admin_index" if @current_user.super_admin? %>
6
+
7
+ <!-- Manage Location -->
8
+ <%= render partial: "pattana/dashboard/index" %>
9
+
10
+ <div style="border-top:1px solid #FFF;margin-top:50px;margin-bottom:70px;"></div>
11
+
12
+ <div class="dx-warning mt-60">
13
+ <div>
14
+ <h2>Usman - API Documentation</h2>
15
+ <p>All APIs are documented with all cases and examples.</p>
16
+ <a class="btn btn-success" href="/docs/api/v1/register" target="_blank">Go to the API Documentation</a>
17
+ </div>
18
+ </div>
@@ -0,0 +1,40 @@
1
+ <%= form_for(@event,
2
+ :url => (@event.new_record? ? dhatu.events_path : dhatu.event_path),
3
+ :method => (@event.new_record? ? :post : :put),
4
+ :remote => true,
5
+ :html => {:id=>"form_event", :class=>"mb-0 form-horizontal"}) do |f| %>
6
+
7
+ <div id="event_form_error">
8
+ <%= @event.errors[:base].to_sentence %>
9
+ </div>
10
+
11
+ <div class="form-inputs m-15">
12
+
13
+ <%= theme_form_field(@event, :title, form_style: "top-bottom") %>
14
+
15
+ <%= theme_form_field(@event, :venue, required: false, form_style: "top-bottom") %>
16
+
17
+ <%= theme_form_field(@event, :description, required: true, html_options: {type: :textarea, class: "form-control wysihtml5", "data-stylesheet-url": "assets/wysiwyg-color.css"}, form_style: "top-bottom") %>
18
+
19
+ <div class="row">
20
+ <div class="col-md-4 pr-20">
21
+ <%= theme_form_field(@event, :starts_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
22
+ </div>
23
+ <div class="col-md-4 pl-20">
24
+ <%= theme_form_field(@event, :ends_at, required: false, html_options: {type: :date}, form_style: "top-bottom") %>
25
+ </div>
26
+ </div>
27
+
28
+ </div>
29
+
30
+ <div>
31
+ <%= submit_tag("Save", :class=>"btn btn-primary pull-right ml-10") %>
32
+
33
+ <%= link_to raw("<i class='fa fa-close mr-5'></i><span>Cancel</span>"), "#", onclick: "closeLargeModal();", class: "pull-right btn btn-white" %>
34
+ </div>
35
+
36
+ <%= clear_tag %>
37
+ </div>
38
+
39
+ <% end %>
40
+
@@ -0,0 +1,58 @@
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>Event Title</th>
8
+ <th>Venue</th>
9
+ <th style="width:100px;" class="hidden-sm hidden-xs">Featured</th>
10
+ <th style="width:100px;" class="hidden-sm hidden-xs">Status</th>
11
+ <% if display_manage_links? %>
12
+ <th style="text-align: center;" colspan="2" class="hidden-sm hidden-xs">Actions</th>
13
+ <% end %>
14
+ </tr>
15
+ </thead>
16
+ <tbody>
17
+ <tr id="tr_event_0"></tr>
18
+ <% @events.each_with_index do |event, i| %>
19
+
20
+ <tr id="tr_event_<%= event.id %>">
21
+
22
+ <th scope="row" style="text-align: center;">
23
+ <%= serial_number(i) %>
24
+ </th>
25
+
26
+ <td class="display-image">
27
+ <%= display_thumbnail_small(event) %>
28
+ </td>
29
+
30
+ <td class="display-link"><%= link_to event.title, event_path(event), remote: true %></td>
31
+
32
+ <td class="display-link hidden-sm hidden-xs"><%= link_to event.venue, event_path(event), remote: true %></td>
33
+
34
+ <td class="hidden-sm hidden-xs"><%= display_featured(event) %></td>
35
+
36
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(event) %></td>
37
+
38
+ <% if display_manage_links? %>
39
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(event) %></td>
40
+
41
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
42
+ <%= display_featurable_links(event) %>
43
+ <%= display_manage_links(event, @current_user) %>
44
+ </td>
45
+ <% end %>
46
+
47
+ </tr>
48
+
49
+ <% end %>
50
+ </tbody>
51
+ </table>
52
+ </div>
53
+
54
+ <div class="row">
55
+ <div class="col-sm-12">
56
+ <%= paginate_kuppayam(@events) %>
57
+ </div>
58
+ </div>
@@ -0,0 +1,28 @@
1
+ <tr id="tr_event_<%= event.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(event) %>
9
+ </td>
10
+
11
+ <td class="event-name"><%= link_to event.title, event_path(event), remote: true %></td>
12
+
13
+ <td class="event-name hidden-sm hidden-xs"><%= link_to event.venue, event_path(event), remote: true %></td>
14
+
15
+ <td class="hidden-sm hidden-xs"><%= display_featured(event) %></td>
16
+
17
+ <td class="hidden-sm hidden-xs"><%= display_publishable_status(event) %></td>
18
+
19
+ <% if display_manage_links? %>
20
+ <td class="action-links hidden-sm hidden-xs" style="width:10%"><%= display_publishable_links(event) %></td>
21
+
22
+ <td class="action-links hidden-sm hidden-xs" style="width:10%">
23
+ <%= display_featurable_links(event) %>
24
+ <%= display_manage_links(event, @current_user) %>
25
+ </td>
26
+ <% end %>
27
+
28
+ </tr>
@@ -0,0 +1,120 @@
1
+ <div id="div_event_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(@event,
8
+ "cover_image.image.large.url",
9
+ upload_image_link(@event, :cover_image, nil ),
10
+ remove_image_link(@event, :cover_image, nil ),
11
+ image_options: {assoc_name: :cover_image }) %>
12
+ <% else %>
13
+ <%= display_image(@event, "cover_image.image.large.url", class: "img-inline", alt: @event.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(@event.title) %>
20
+
21
+ <%= theme_panel_sub_heading(@event.venue, "#") if @event.venue %>
22
+
23
+ <%= clear_tag(10) %>
24
+
25
+ <%= display_publishable_status(@event) %>
26
+
27
+ <%= display_featured(@event) %>
28
+
29
+ <%= clear_tag(20) %>
30
+
31
+ <div class="table-responsive">
32
+ <table class="table table-striped table-condensed table-bordered">
33
+ <tbody>
34
+
35
+ <tr>
36
+ <th style="width:25%">Starts At</th>
37
+ <td style="width:25%"><%= time_tag(@event.starts_at) if @event.starts_at %></td>
38
+ <th style="width:25%">Ends At</th>
39
+ <td style="width:25%"><%= time_tag(@event.ends_at) if @event.ends_at %></td>
40
+ </tr>
41
+
42
+ <tr>
43
+ <th>Date</th><td><%= @event.date.strftime("%m/%d/%Y - %H:%M:%S") if @event.date %></td>
44
+ <th></th><td></td>
45
+ </tr>
46
+
47
+ </tbody>
48
+ </table>
49
+ </div>
50
+ </div>
51
+
52
+ <% if display_manage_links? %>
53
+ <div class="col-md-3 col-sm-12 col-xs-12">
54
+ <%= display_manage_buttons(@event) %>
55
+ <%= display_publishable_buttons(@event) %>
56
+ <%= display_featurable_buttons(@event) %>
57
+ </div>
58
+ <% end %>
59
+
60
+ </div>
61
+
62
+ <%= clear_tag(20) %>
63
+
64
+ <ul class="nav nav-pills">
65
+ <li class="active">
66
+ <a href="#event_details" data-toggle="tab" aria-expanded="true">
67
+ <span class="visible-xs"><i class="fa-info"></i></span>
68
+ <span class="hidden-xs">Event Details</span>
69
+ </a>
70
+ </li>
71
+ <li class="">
72
+ <a href="#technical_details" data-toggle="tab" aria-expanded="false">
73
+ <span class="visible-xs"><i class="fa-database"></i></span>
74
+ <span class="hidden-xs">Technical Details</span>
75
+ </a>
76
+ </li>
77
+ </ul>
78
+
79
+ <div class="tab-content">
80
+ <div class="tab-pane active" id="event_details" style="border: 1px solid #000;min-height:200px;padding:20px;margin-bottom:20px;max-height: 400px;overflow-y: auto;">
81
+
82
+ <%= clear_tag(20) %>
83
+ <%= raw(@event.description) %>
84
+ <%= clear_tag(20) %>
85
+
86
+ </div>
87
+
88
+ <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;">
89
+
90
+ <%= clear_tag(20) %>
91
+
92
+ <div class="table-responsive">
93
+ <table class="table table-striped table-condensed table-bordered mb-60">
94
+ <tbody>
95
+
96
+ <tr>
97
+ <th>ID</th><td><%= @event.id %></td>
98
+ <th>Permalink</th><td><%= @event.to_param %></td>
99
+ </tr>
100
+ <tr>
101
+ <th>Featured</th><td><%= @event.featured %></td>
102
+ <th>Status</th><td><%= @event.status %></td>
103
+ </tr>
104
+ <tr>
105
+ <th>Created At</th><td><%= @event.created_at.strftime("%m/%d/%Y - %H:%M:%S") if @event.created_at %></td>
106
+ <th>Updated At</th><td><%= @event.updated_at.strftime("%m/%d/%Y - %H:%M:%S") if @event.updated_at %></td>
107
+ </tr>
108
+
109
+ </tbody>
110
+ </table>
111
+ </div>
112
+
113
+ </div>
114
+ </div>
115
+
116
+ <%= link_to "Close", "#", onclick: "closeLargeModal();", class: "btn btn-primary pull-right" %>
117
+
118
+ <%= clear_tag %>
119
+
120
+ </div>