dashstrap 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.yardopts +1 -0
- data/Gemfile +8 -0
- data/LICENSE +339 -0
- data/README.md +40 -0
- data/Rakefile +13 -0
- data/TODO.org +3 -0
- data/app/assets/fonts/BYekan.eot +0 -0
- data/app/assets/fonts/BYekan.ttf +0 -0
- data/app/assets/fonts/BYekan.woff +0 -0
- data/app/assets/javascripts/dashstrap/application.js +2 -0
- data/app/assets/javascripts/dashstrap/functions.js +27 -0
- data/app/assets/javascripts/dashstrap/locales/translations.fa.js +5 -0
- data/app/assets/javascripts/dashstrap/modules/init.js +1 -0
- data/app/assets/javascripts/dashstrap/modules/list-view.js +376 -0
- data/app/assets/javascripts/dashstrap/modules/modules.js +79 -0
- data/app/assets/javascripts/dashstrap/modules/navigation.js +24 -0
- data/app/assets/javascripts/locales/translations.fa.js +5 -0
- data/app/assets/locales/templates.pot +92 -0
- data/app/assets/locales/translate.fa.pot +93 -0
- data/app/assets/stylesheets/dashstrap/ltr/application.css +17 -0
- data/app/assets/stylesheets/dashstrap/ltr/ltr.scss +15 -0
- data/app/assets/stylesheets/dashstrap/main.css.scss +63 -0
- data/app/assets/stylesheets/dashstrap/rtl/#application.css# +4 -0
- data/app/assets/stylesheets/dashstrap/rtl/application.css +18 -0
- data/app/assets/stylesheets/dashstrap/rtl/rtl.scss +38 -0
- data/app/assets/stylesheets/dashstrap/share.scss +7 -0
- data/app/assets/stylesheets/faalis/ltr/application.css +0 -0
- data/app/assets/stylesheets/faalis/rtl/application.css +0 -0
- data/app/assets/stylesheets/simple/ltr/application.css +4 -0
- data/app/assets/stylesheets/simple/rtl/application.css +5 -0
- data/app/assets/stylesheets/simple/rtl/rtl.scss +16 -0
- data/app/assets/stylesheets/simple/share.scss +11 -0
- data/app/views/angular/auth/groups/details.html +21 -0
- data/app/views/angular/auth/groups/index.html.slim +2 -0
- data/app/views/angular/auth/groups/new.html.slim +44 -0
- data/app/views/angular/auth/index.html +30 -0
- data/app/views/angular/auth/profile/edit.html +54 -0
- data/app/views/angular/auth/users/details.html +28 -0
- data/app/views/angular/auth/users/index.html +6 -0
- data/app/views/angular/auth/users/new.html +57 -0
- data/app/views/angular/fields/accordion/accordion-group.html +10 -0
- data/app/views/angular/fields/accordion/accordion.html +1 -0
- data/app/views/angular/fields/alert/alert.html +7 -0
- data/app/views/angular/fields/boolean/boolean.html +4 -0
- data/app/views/angular/fields/carousel/carousel.html +8 -0
- data/app/views/angular/fields/carousel/slide.html +7 -0
- data/app/views/angular/fields/control-combo/control-list.html +19 -0
- data/app/views/angular/fields/datepicker/datepicker.html +5 -0
- data/app/views/angular/fields/datepicker/day.html +21 -0
- data/app/views/angular/fields/datepicker/month.html +16 -0
- data/app/views/angular/fields/datepicker/popup.html +10 -0
- data/app/views/angular/fields/datepicker/year.html +16 -0
- data/app/views/angular/fields/datetime/datetime.html +10 -0
- data/app/views/angular/fields/datetime/time.html +25 -0
- data/app/views/angular/fields/float/float.html +4 -0
- data/app/views/angular/fields/image/image.html +1 -0
- data/app/views/angular/fields/integer/integer.html +4 -0
- data/app/views/angular/fields/modal/backdrop.html +4 -0
- data/app/views/angular/fields/modal/window.html +3 -0
- data/app/views/angular/fields/pagination/pager.html +4 -0
- data/app/views/angular/fields/pagination/pagination.html +7 -0
- data/app/views/angular/fields/popover/popover.html +8 -0
- data/app/views/angular/fields/progressbar/bar.html +1 -0
- data/app/views/angular/fields/progressbar/progress.html +1 -0
- data/app/views/angular/fields/progressbar/progressbar.html +3 -0
- data/app/views/angular/fields/rating/rating.html +5 -0
- data/app/views/angular/fields/relation/relation.html +43 -0
- data/app/views/angular/fields/string/string.html +22 -0
- data/app/views/angular/fields/tabs/tab.html +3 -0
- data/app/views/angular/fields/tabs/tabset.html +10 -0
- data/app/views/angular/fields/tag/tag.html +3 -0
- data/app/views/angular/fields/text/text.html +4 -0
- data/app/views/angular/fields/timepicker/timepicker.html +26 -0
- data/app/views/angular/fields/tooltip/tooltip-html-unsafe-popup.html +4 -0
- data/app/views/angular/fields/tooltip/tooltip-popup.html +4 -0
- data/app/views/angular/fields/typeahead/typeahead-match.html +1 -0
- data/app/views/angular/fields/typeahead/typeahead-popup.html +5 -0
- data/app/views/angular/index.html +448 -0
- data/app/views/angular/list-view/index.html +161 -0
- data/app/views/angular/modules.html +46 -0
- data/app/views/angular/nav.html.erb +273 -0
- data/app/views/dashstrap/.keep +0 -0
- data/app/views/devise/registrations/edit.html.erb +29 -0
- data/app/views/devise/registrations/new.html.erb +36 -0
- data/app/views/devise/sessions/new.html.erb +33 -0
- data/app/views/devise/shared/_links.erb +19 -0
- data/app/views/devise/shared/_omni_link.erb +15 -0
- data/app/views/faalis/dashboard/index.html.erb +44 -0
- data/app/views/faalis/dashboard/login_required_page.html.erb +5 -0
- data/app/views/layouts/dashstrap/.keep +0 -0
- data/app/views/layouts/faalis/application.html.erb +83 -0
- data/app/views/layouts/faalis/dashboard.html.erb +26 -0
- data/app/views/layouts/faalis/simple.html.erb +22 -0
- data/dashstrap.gemspec +39 -0
- data/lib/dashstrap/engine.rb +29 -0
- data/lib/dashstrap/version.rb +3 -0
- data/lib/dashstrap.rb +4 -0
- data/lib/generators/dashstrap/install_generator.rb +14 -0
- data/lib/generators/templates/js/list_view/README +31 -0
- data/lib/generators/templates/js/list_view/details.html.erb +25 -0
- data/lib/generators/templates/js/list_view/index.html.erb +89 -0
- data/lib/generators/templates/js/list_view/module.js.erb +10 -0
- data/lib/generators/templates/js/list_view/new.html.erb +81 -0
- data/lib/generators/templates/js/list_view/partials/add_controller.js.erb +103 -0
- data/lib/generators/templates/js/list_view/partials/config.js.erb +20 -0
- data/lib/generators/templates/js/list_view/partials/index_controller.js.erb +199 -0
- data/lib/generators/templates/js/list_view/partials/menu.js.erb +6 -0
- data/lib/generators/templates/stylesheets/application.css +13 -0
- data/lib/generators/templates/stylesheets/dashboard/ltr/application.css +1 -0
- data/lib/generators/templates/stylesheets/dashboard/rtl/application.css +1 -0
- data/lib/generators/templates/stylesheets/ltr/application.css +6 -0
- data/lib/generators/templates/stylesheets/rtl/application.css +4 -0
- data/lib/tasks/.keep +0 -0
- data/lib/tasks/build.rake +15 -0
- data/lib/tasks/grunt/Gruntfile.js +30 -0
- data/vendor/assets/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +414 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/ionicons.eot +0 -0
- data/vendor/assets/fonts/ionicons.svg +1623 -0
- data/vendor/assets/fonts/ionicons.ttf +0 -0
- data/vendor/assets/fonts/ionicons.woff +0 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/javascripts/AdminLTE/app.js +1037 -0
- data/vendor/assets/javascripts/AdminLTE/dashboard.js +254 -0
- data/vendor/assets/javascripts/bootstrap.js +2114 -0
- data/vendor/assets/javascripts/ui-bootstrap.js +3799 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- data/vendor/assets/stylesheets/AdminLTE.css +3024 -0
- data/vendor/assets/stylesheets/bootstrap.css +7118 -0
- data/vendor/assets/stylesheets/rtl/AdminLTE.css +3032 -0
- data/vendor/assets/stylesheets/rtl/bootstrap-rtl.css +442 -0
- data/vendor/assets/stylesheets/rtl/bootstrap.css +6239 -0
- metadata +366 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
<!-- header logo: style can be found in header.less -->
|
|
2
|
+
<div ng-controller="NavigationController as controller">
|
|
3
|
+
<a href="/" class="logo">
|
|
4
|
+
<!-- Add the class icon to your logo image or logo icon to add the margining -->
|
|
5
|
+
<%= Faalis::Engine.site_title %>
|
|
6
|
+
</a>
|
|
7
|
+
<!-- Header Navbar: style can be found in header.less -->
|
|
8
|
+
<nav class="navbar navbar-static-top" role="navigation">
|
|
9
|
+
<!-- Sidebar toggle button-->
|
|
10
|
+
<div class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button" ng-click="controller.toggle_sidebar()">
|
|
11
|
+
<span class="sr-only">Toggle navigation</span>
|
|
12
|
+
<span class="icon-bar"></span>
|
|
13
|
+
<span class="icon-bar"></span>
|
|
14
|
+
<span class="icon-bar"></span>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="navbar-right">
|
|
17
|
+
<ul class="nav navbar-nav">
|
|
18
|
+
<!-- Messages: style can be found in dropdown.less-->
|
|
19
|
+
<li class="dropdown messages-menu">
|
|
20
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
21
|
+
<i class="fa fa-envelope"></i>
|
|
22
|
+
<span class="label label-success">4</span>
|
|
23
|
+
</a>
|
|
24
|
+
<ul class="dropdown-menu">
|
|
25
|
+
<li class="header">-You have 4 messages</li>
|
|
26
|
+
<li>
|
|
27
|
+
<!-- inner menu: contains the actual data -->
|
|
28
|
+
<ul class="menu">
|
|
29
|
+
<li><!-- start message -->
|
|
30
|
+
<a href="#">
|
|
31
|
+
<div class="pull-left">
|
|
32
|
+
<img src="img/avatar3.png" class="img-circle" alt="User Image"/>
|
|
33
|
+
</div>
|
|
34
|
+
<h4>
|
|
35
|
+
Support Team
|
|
36
|
+
<small><i class="fa fa-clock-o"></i> 5 mins</small>
|
|
37
|
+
</h4>
|
|
38
|
+
<p>Why not buy a new awesome theme?</p>
|
|
39
|
+
</a>
|
|
40
|
+
</li>
|
|
41
|
+
|
|
42
|
+
<!-- end message -->
|
|
43
|
+
<li>
|
|
44
|
+
<a href="#">
|
|
45
|
+
<div class="pull-left">
|
|
46
|
+
<img src="img/avatar2.png" class="img-circle" alt="user image"/>
|
|
47
|
+
</div>
|
|
48
|
+
<h4>
|
|
49
|
+
AdminLTE Design Team
|
|
50
|
+
<small><i class="fa fa-clock-o"></i> 2 hours</small>
|
|
51
|
+
</h4>
|
|
52
|
+
<p>Why not buy a new awesome theme?</p>
|
|
53
|
+
</a>
|
|
54
|
+
</li>
|
|
55
|
+
<li>
|
|
56
|
+
<a href="#">
|
|
57
|
+
<div class="pull-left">
|
|
58
|
+
<img src="img/avatar.png" class="img-circle" alt="user image"/>
|
|
59
|
+
</div>
|
|
60
|
+
<h4>
|
|
61
|
+
Developers
|
|
62
|
+
<small><i class="fa fa-clock-o"></i> Today</small>
|
|
63
|
+
</h4>
|
|
64
|
+
<p>Why not buy a new awesome theme?</p>
|
|
65
|
+
</a>
|
|
66
|
+
</li>
|
|
67
|
+
<li>
|
|
68
|
+
<a href="#">
|
|
69
|
+
<div class="pull-left">
|
|
70
|
+
<img src="img/avatar2.png" class="img-circle" alt="user image"/>
|
|
71
|
+
</div>
|
|
72
|
+
<h4>
|
|
73
|
+
Sales Department
|
|
74
|
+
<small><i class="fa fa-clock-o"></i> Yesterday</small>
|
|
75
|
+
</h4>
|
|
76
|
+
<p>Why not buy a new awesome theme?</p>
|
|
77
|
+
</a>
|
|
78
|
+
</li>
|
|
79
|
+
<li>
|
|
80
|
+
<a href="#">
|
|
81
|
+
<div class="pull-left">
|
|
82
|
+
<img src="img/avatar.png" class="img-circle" alt="user image"/>
|
|
83
|
+
</div>
|
|
84
|
+
<h4>
|
|
85
|
+
Reviewers
|
|
86
|
+
<small><i class="fa fa-clock-o"></i> 2 days</small>
|
|
87
|
+
</h4>
|
|
88
|
+
<p>Why not buy a new awesome theme?</p>
|
|
89
|
+
</a>
|
|
90
|
+
</li>
|
|
91
|
+
</ul>
|
|
92
|
+
</li>
|
|
93
|
+
<li class="footer"><a href="#">See All Messages</a></li>
|
|
94
|
+
</ul>
|
|
95
|
+
</li>
|
|
96
|
+
<!-- Notifications: style can be found in dropdown.less -->
|
|
97
|
+
<li class="dropdown notifications-menu">
|
|
98
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
99
|
+
<i class="fa fa-warning"></i>
|
|
100
|
+
<span class="label label-warning">10</span>
|
|
101
|
+
</a>
|
|
102
|
+
<ul class="dropdown-menu">
|
|
103
|
+
<li class="header">You have 10 notifications</li>
|
|
104
|
+
<li>
|
|
105
|
+
<!-- inner menu: contains the actual data -->
|
|
106
|
+
<ul class="menu">
|
|
107
|
+
<li>
|
|
108
|
+
<a href="#">
|
|
109
|
+
<i class="ion ion-ios7-people info"></i> 5 new members joined today
|
|
110
|
+
</a>
|
|
111
|
+
</li>
|
|
112
|
+
<li>
|
|
113
|
+
<a href="#">
|
|
114
|
+
<i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems
|
|
115
|
+
</a>
|
|
116
|
+
</li>
|
|
117
|
+
<li>
|
|
118
|
+
<a href="#">
|
|
119
|
+
<i class="fa fa-users warning"></i> 5 new members joined
|
|
120
|
+
</a>
|
|
121
|
+
</li>
|
|
122
|
+
|
|
123
|
+
<li>
|
|
124
|
+
<a href="#">
|
|
125
|
+
<i class="ion ion-ios7-cart success"></i> 25 sales made
|
|
126
|
+
</a>
|
|
127
|
+
</li>
|
|
128
|
+
<li>
|
|
129
|
+
<a href="#">
|
|
130
|
+
<i class="ion ion-ios7-person danger"></i> You changed your username
|
|
131
|
+
</a>
|
|
132
|
+
</li>
|
|
133
|
+
</ul>
|
|
134
|
+
</li>
|
|
135
|
+
<li class="footer"><a href="#">View all</a></li>
|
|
136
|
+
</ul>
|
|
137
|
+
</li>
|
|
138
|
+
|
|
139
|
+
<li class="dropdown messages-menu">
|
|
140
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
141
|
+
<i class="fa fa-flag"></i>
|
|
142
|
+
</a>
|
|
143
|
+
<ul class="dropdown-menu">
|
|
144
|
+
<li class="header" traslate>Select language"</li>
|
|
145
|
+
<li>
|
|
146
|
+
<ul class="menu">
|
|
147
|
+
<% ::I18n.available_locales.each do |locale| %>
|
|
148
|
+
<li><!-- Task item -->
|
|
149
|
+
<a href="<%= "/#{locale.to_s}/#{Faalis::Engine.dashboard_namespace.to_s}/" %>">
|
|
150
|
+
<h4>
|
|
151
|
+
<%= locale.upcase %>
|
|
152
|
+
</h4>
|
|
153
|
+
</a>
|
|
154
|
+
</li><!-- end task item -->
|
|
155
|
+
<% end %>
|
|
156
|
+
</ul>
|
|
157
|
+
</li>
|
|
158
|
+
</ul>
|
|
159
|
+
</li>
|
|
160
|
+
<!-- Tasks: style can be found in dropdown.less -->
|
|
161
|
+
<li class="dropdown tasks-menu">
|
|
162
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
163
|
+
<i class="fa fa-tasks"></i>
|
|
164
|
+
<span class="label label-danger">9</span>
|
|
165
|
+
</a>
|
|
166
|
+
<ul class="dropdown-menu">
|
|
167
|
+
<li class="header">You have 9 tasks</li>
|
|
168
|
+
<li>
|
|
169
|
+
<!-- inner menu: contains the actual data -->
|
|
170
|
+
<ul class="menu">
|
|
171
|
+
<li><!-- Task item -->
|
|
172
|
+
<a href="#">
|
|
173
|
+
<h3>
|
|
174
|
+
Design some buttons
|
|
175
|
+
<small class="pull-right">20%</small>
|
|
176
|
+
</h3>
|
|
177
|
+
<div class="progress xs">
|
|
178
|
+
<div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
|
179
|
+
<span class="sr-only">20% Complete</span>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</a>
|
|
183
|
+
</li><!-- end task item -->
|
|
184
|
+
<li><!-- Task item -->
|
|
185
|
+
<a href="#">
|
|
186
|
+
<h3>
|
|
187
|
+
Create a nice theme
|
|
188
|
+
<small class="pull-right">40%</small>
|
|
189
|
+
</h3>
|
|
190
|
+
<div class="progress xs">
|
|
191
|
+
<div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
|
192
|
+
<span class="sr-only">40% Complete</span>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</a>
|
|
196
|
+
</li><!-- end task item -->
|
|
197
|
+
<li><!-- Task item -->
|
|
198
|
+
<a href="#">
|
|
199
|
+
<h3>
|
|
200
|
+
Some task I need to do
|
|
201
|
+
<small class="pull-right">60%</small>
|
|
202
|
+
</h3>
|
|
203
|
+
<div class="progress xs">
|
|
204
|
+
<div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
|
205
|
+
<span class="sr-only">60% Complete</span>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</a>
|
|
209
|
+
</li><!-- end task item -->
|
|
210
|
+
<li><!-- Task item -->
|
|
211
|
+
<a href="#">
|
|
212
|
+
<h3>
|
|
213
|
+
Make beautiful transitions
|
|
214
|
+
<small class="pull-right">80%</small>
|
|
215
|
+
</h3>
|
|
216
|
+
<div class="progress xs">
|
|
217
|
+
<div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
|
|
218
|
+
<span class="sr-only">80% Complete</span>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</a>
|
|
222
|
+
</li><!-- end task item -->
|
|
223
|
+
</ul>
|
|
224
|
+
</li>
|
|
225
|
+
<li class="footer">
|
|
226
|
+
<a href="#"><%= _("View all tasks") %></a>
|
|
227
|
+
</li>
|
|
228
|
+
</ul>
|
|
229
|
+
</li>
|
|
230
|
+
|
|
231
|
+
<!-- User Account: style can be found in dropdown.less -->
|
|
232
|
+
<li class="dropdown user user-menu">
|
|
233
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
234
|
+
<i class="glyphicon glyphicon-user"></i>
|
|
235
|
+
<span> <%= @current_user.name %> <i class="caret"></i></span>
|
|
236
|
+
</a>
|
|
237
|
+
<ul class="dropdown-menu">
|
|
238
|
+
<!-- User image -->
|
|
239
|
+
<li class="user-header bg-light-blue">
|
|
240
|
+
<img src="img/avatar3.png" class="img-circle" alt="User Image" />
|
|
241
|
+
<p>
|
|
242
|
+
|
|
243
|
+
<%= @current_user.name %>
|
|
244
|
+
<small>Member since Nov. 2012</small>
|
|
245
|
+
</p>
|
|
246
|
+
</li>
|
|
247
|
+
<!-- Menu Body -->
|
|
248
|
+
<li class="user-body">
|
|
249
|
+
<div class="col-xs-4 text-center">
|
|
250
|
+
<a href="#"><%= _("Followers") %></a>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="col-xs-4 text-center">
|
|
253
|
+
<a href="#"><%= _("Sales") %></a>
|
|
254
|
+
</div>
|
|
255
|
+
<div class="col-xs-4 text-center">
|
|
256
|
+
<a href="#"><%= _("Friends") %></a>
|
|
257
|
+
</div>
|
|
258
|
+
</li>
|
|
259
|
+
<!-- Menu Footer-->
|
|
260
|
+
<li class="user-footer">
|
|
261
|
+
<div class="pull-left">
|
|
262
|
+
<a href="#" class="btn btn-default btn-flat"><%= _("Profile") %></a>
|
|
263
|
+
</div>
|
|
264
|
+
<div class="pull-right">
|
|
265
|
+
<a href="#" class="btn btn-default btn-flat"><%= _("Sign out") %></a>
|
|
266
|
+
</div>
|
|
267
|
+
</li>
|
|
268
|
+
</ul>
|
|
269
|
+
</li>
|
|
270
|
+
</ul>
|
|
271
|
+
</div>
|
|
272
|
+
</nav>
|
|
273
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
|
2
|
+
|
|
3
|
+
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
4
|
+
<%= devise_error_messages! %>
|
|
5
|
+
|
|
6
|
+
<div><%= f.label :email %><br />
|
|
7
|
+
<%= f.email_field :email, :autofocus => true %></div>
|
|
8
|
+
|
|
9
|
+
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
10
|
+
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
11
|
+
<% end %>
|
|
12
|
+
|
|
13
|
+
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
|
14
|
+
<%= f.password_field :password, :autocomplete => "off" %></div>
|
|
15
|
+
|
|
16
|
+
<div><%= f.label :password_confirmation %><br />
|
|
17
|
+
<%= f.password_field :password_confirmation %></div>
|
|
18
|
+
|
|
19
|
+
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
20
|
+
<%= f.password_field :current_password %></div>
|
|
21
|
+
|
|
22
|
+
<div><%= f.submit "Update" %></div>
|
|
23
|
+
<% end %>
|
|
24
|
+
|
|
25
|
+
<h3>Cancel my account</h3>
|
|
26
|
+
|
|
27
|
+
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %></p>
|
|
28
|
+
|
|
29
|
+
<%= link_to "Back", :back %>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<div class="form-box" id="login-box">
|
|
2
|
+
<div class="header"><%=_("Sign Up") %></div>
|
|
3
|
+
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
|
4
|
+
|
|
5
|
+
<div class="body bg-gray">
|
|
6
|
+
<% unless resource.errors.empty? %>
|
|
7
|
+
<br />
|
|
8
|
+
<div class="alert alert-danger" role="alert">
|
|
9
|
+
<i class="fa fa-warning"></i>
|
|
10
|
+
<%= devise_error_messages! %>
|
|
11
|
+
</div>
|
|
12
|
+
<% end %>
|
|
13
|
+
|
|
14
|
+
<div class="form-group <% if resource.errors[:email] -%>has-error<% end %>">
|
|
15
|
+
<%= f.email_field :email, :autofocus => true, :type => "text", :class => "form-control", :placeholder=>_("E-mail") %>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<% if resource.send(:password_required?) %>
|
|
19
|
+
<div class="form-group <% if resource.errors[:password] -%>has-error<% end %>">
|
|
20
|
+
<%= f.password_field :password, :class => "form-control", :placeholder=>_("Password")%>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group <% if resource.errors[:password_confirmation] -%>has-error<% end %>">
|
|
23
|
+
<%= f.password_field :password_confirmation, :class => "form-control", :placeholder=>_("Confirm Password") %>
|
|
24
|
+
</div>
|
|
25
|
+
<% end %>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="footer">
|
|
28
|
+
|
|
29
|
+
<div class="submit"><%= f.submit "Sign up" , :class => "btn bg-olive btn-block" %></div>
|
|
30
|
+
<br /><br />
|
|
31
|
+
<%= render "devise/shared/links" %>
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
<% end %>
|
|
35
|
+
<%= render "devise/shared/omni_link" %>
|
|
36
|
+
</div>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
<div class="form-box" id="login-box">
|
|
3
|
+
<div class="header"><%= _("Sign In") %></div>
|
|
4
|
+
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
|
5
|
+
<div class="body bg-gray">
|
|
6
|
+
<%- flash.each do |name, msg| -%>
|
|
7
|
+
<br />
|
|
8
|
+
<div class="alert alert-danger" role='alert'><i class="fa fa-warning"></i> <%= msg %></div>
|
|
9
|
+
<%- end -%>
|
|
10
|
+
|
|
11
|
+
<div class="form-group <% if resource.errors[:email] -%>has-error<% end %>">
|
|
12
|
+
<%= f.email_field :email, :autofocus => true, :class => "form-control", :placeholder=>_("E-mail") %>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="form-group">
|
|
16
|
+
<%= f.password_field :password, :class => "form-control", :placeholder=>_("Password") %>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="form-group">
|
|
19
|
+
<% if devise_mapping.rememberable? -%>
|
|
20
|
+
<div><span id="rememberme"><%= f.check_box :remember_me, :class=>"checkbox" %></span> <%= f.label _("Remember me") %></div>
|
|
21
|
+
<% end %>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="footer">
|
|
26
|
+
<%= f.submit _("Sign in"), :class => "btn bg-olive btn-block"%><br><br>
|
|
27
|
+
|
|
28
|
+
<%= render "devise/shared/links" %>
|
|
29
|
+
</div>
|
|
30
|
+
<% end %>
|
|
31
|
+
<%= render "devise/shared/omni_link" %>
|
|
32
|
+
|
|
33
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<%- if controller_name != 'sessions' %>
|
|
2
|
+
<%= link_to "Sign in", new_session_path(resource_name) %><br />
|
|
3
|
+
<% end -%>
|
|
4
|
+
|
|
5
|
+
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
|
6
|
+
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
|
|
7
|
+
<% end -%>
|
|
8
|
+
|
|
9
|
+
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
|
10
|
+
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
|
11
|
+
<% end -%>
|
|
12
|
+
|
|
13
|
+
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
|
14
|
+
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
|
15
|
+
<% end -%>
|
|
16
|
+
|
|
17
|
+
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
|
18
|
+
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
|
|
19
|
+
<% end -%>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<%- if devise_mapping.omniauthable? %>
|
|
2
|
+
<div class="margin text-center login_via">
|
|
3
|
+
<span><%= _("Login using") %>:</span>
|
|
4
|
+
<br/><br/>
|
|
5
|
+
<%- resource_class.omniauth_providers.each do |service| %>
|
|
6
|
+
<% if [:facebook, :twitter, :google_oauth2].include? service %>
|
|
7
|
+
<% if service == :facebook %><a href='/auth/facebook/' class="btn bg-light-blue btn-circle"><i class="fa fa-facebook"></i></a><% end %>
|
|
8
|
+
<% if service == :twitter %><a href='/auth/twitter/' class="btn bg-aqua btn-circle"><i class="fa fa-twitter"></i></a><% end %>
|
|
9
|
+
<% if service == :google_oauth2 %><a href='/auth/google_oauth2/' class="btn bg-red btn-circle"><i class="fa fa-google-plus"></i></a><% end %>
|
|
10
|
+
<% else %>
|
|
11
|
+
<a href='<%= faalis.user_omniauth_authorize_path(service) %>' class="btn btn-circle"><i class="fa fa-<%= service %>"></i></a>
|
|
12
|
+
<% end %>
|
|
13
|
+
<% end %>
|
|
14
|
+
</div>
|
|
15
|
+
<% end %>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<header class="header" ng-include="'<%= @jstemplates_path %>/nav.html'">
|
|
2
|
+
</header>
|
|
3
|
+
<div class="wrapper row-offcanvas row-offcanvas-left">
|
|
4
|
+
<aside class="left-side sidebar-offcanvas" ng-include="'<%= @jstemplates_path %>/modules.html'">
|
|
5
|
+
</aside>
|
|
6
|
+
|
|
7
|
+
<!-- Right side column. Contains the navbar and content of the page -->
|
|
8
|
+
<aside class="right-side">
|
|
9
|
+
<!-- Content Header (Page header) -->
|
|
10
|
+
<section class="content-header">
|
|
11
|
+
<h1>
|
|
12
|
+
<span>{{ section_name || 'Dashboard' | translate }}</span>
|
|
13
|
+
<small>{{ section_slug || '<%= Faalis::Engine.try(:slug) %>' || 'SLUG' }}</small>
|
|
14
|
+
</h1>
|
|
15
|
+
<ol class="breadcrumb">
|
|
16
|
+
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
|
17
|
+
<li class="active"></li>
|
|
18
|
+
</ol>
|
|
19
|
+
</section>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<!-- Main content -->
|
|
23
|
+
<section class="content">
|
|
24
|
+
|
|
25
|
+
<div class="row">
|
|
26
|
+
<div class="col-sm-12">
|
|
27
|
+
<br />
|
|
28
|
+
<div id="flash-alert" class="alert alert-danger alert-dismissable hide">
|
|
29
|
+
<i id="flash-icon" class="fa"></i>
|
|
30
|
+
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
31
|
+
<span id="flash-msg"></span>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<div ui-view>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
</section><!-- /.content -->
|
|
41
|
+
|
|
42
|
+
</aside><!-- /.right-side -->
|
|
43
|
+
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<br /><br /><br />
|
|
2
|
+
<div class="row"><div class="small-8 columns small-offset-2 text-center">
|
|
3
|
+
<h4><%= _("You need to login to use dashboard.") %></h4>
|
|
4
|
+
<a href="/<%= Faalis::Engine.dashboard_namespace %>/?signin" class="btn medium blue"> <i class="fa fa-sign-in"></i> <%= _("Sign in")%></a>
|
|
5
|
+
</div></div>
|
|
File without changes
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title><%= Faalis::Engine.site_title %></title>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<%= stylesheet_link_tag Faalis::I18n.direction(I18n.locale) + "/application", media: "all" %>
|
|
7
|
+
<%= javascript_include_tag :modernizr %>
|
|
8
|
+
<%= csrf_meta_tags %>
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div class="header">
|
|
12
|
+
<div class="large-12 columns">
|
|
13
|
+
<!-- Navigation -->
|
|
14
|
+
<nav class="top-bar" data-topbar>
|
|
15
|
+
<ul class="title-area">
|
|
16
|
+
<li class="name">
|
|
17
|
+
<h1>
|
|
18
|
+
<a href="<%= faalis.root_path %>">
|
|
19
|
+
<%= Faalis::Engine.site_title %>
|
|
20
|
+
</a>
|
|
21
|
+
</h1>
|
|
22
|
+
</li>
|
|
23
|
+
<li class="toggle-topbar menu-icon"><a href="#"><%= _('Menu') %></a></li>
|
|
24
|
+
</ul>
|
|
25
|
+
|
|
26
|
+
<section class="top-bar-section">
|
|
27
|
+
<!-- Right Nav Section -->
|
|
28
|
+
<ul class="<%= Faalis::I18n.direction(I18n.locale) == "ltr" ? "right" : "left" %>">
|
|
29
|
+
<% unless user_signed_in? %>
|
|
30
|
+
<li class="has-form"><%= link_to(faalis.new_user_registration_path, :class => "alert button expand") { content_tag(:i, "", class: "fa fa-user") + " #{_('Register')}" } %></li>
|
|
31
|
+
|
|
32
|
+
<li class="has-form"><%= link_to(faalis.user_session_path, :class => "button expand") { content_tag(:i, "", class: "fa fa-sign-in") + " #{_('Sign in')}" } %></li>
|
|
33
|
+
<% else %>
|
|
34
|
+
<li class="has-form"><%= link_to(faalis.dashboard_path, :class => "success button expand") { content_tag(:i, "", class: "fa fa-dashboard") + " #{_('Dashboard')}" }%></li>
|
|
35
|
+
</li>
|
|
36
|
+
<li class="has-form"><%= link_to(faalis.destroy_user_session_path, :class => "alert button expand", :method => :delete) { content_tag(:i, "", class: "fa fa-sign-out") + " #{_('Sign out')}" } %></li>
|
|
37
|
+
<% end %>
|
|
38
|
+
</ul>
|
|
39
|
+
|
|
40
|
+
<!-- Left Nav Section -->
|
|
41
|
+
<ul class="<%= Faalis::I18n.direction(I18n.locale) == "ltr" ? "left" : "right" %>">
|
|
42
|
+
|
|
43
|
+
<li class="has-dropdown"><a href="#"><i class="fa fa-flag"></i> <%= _("Languages") %></a>
|
|
44
|
+
<ul class="dropdown">
|
|
45
|
+
<% ::I18n.available_locales.each do |locale| %>
|
|
46
|
+
<li><a href="<%= "/#{locale.to_s}/" %>"><%= locale %></a></li>
|
|
47
|
+
<% end %>
|
|
48
|
+
</ul>
|
|
49
|
+
</li>
|
|
50
|
+
|
|
51
|
+
</ul>
|
|
52
|
+
</section>
|
|
53
|
+
</nav>
|
|
54
|
+
|
|
55
|
+
<!-- End Navigation -->
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<%= yield %>
|
|
60
|
+
|
|
61
|
+
<%= debug I18n.locale %>
|
|
62
|
+
<!-- Footer -->
|
|
63
|
+
|
|
64
|
+
<footer>
|
|
65
|
+
<div class="row">
|
|
66
|
+
<div class="large-6 columns">
|
|
67
|
+
<p>© Copyright no one at all. Go to town.</p>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="large-6 columns">
|
|
70
|
+
<ul class="inline-list right">
|
|
71
|
+
<li><a href="#">Link 1</a></li>
|
|
72
|
+
<li><a href="#">Link 2</a></li>
|
|
73
|
+
<li><a href="#">Link 3</a></li>
|
|
74
|
+
<li><a href="#">Link 4</a></li>
|
|
75
|
+
</ul>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</footer>
|
|
79
|
+
<%= javascript_include_tag "faalis/application" %>
|
|
80
|
+
<%= javascript_include_tag "locale/#{::I18n.locale}" %>
|
|
81
|
+
|
|
82
|
+
</body>
|
|
83
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="<%= ::I18n.locale %>" dir="<%= Faalis::I18n.direction(I18n.locale) %>">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
|
6
|
+
<title><%= Faalis::Engine.site_title %></title>
|
|
7
|
+
|
|
8
|
+
<%= stylesheet_link_tag "dashboard/" + Faalis::I18n.direction(I18n.locale) + "/application", media: "all" %>
|
|
9
|
+
<%= javascript_include_tag :modernizr %>
|
|
10
|
+
<%= csrf_meta_tags %>
|
|
11
|
+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
12
|
+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
13
|
+
<!--[if lt IE 9]>
|
|
14
|
+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
15
|
+
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
|
16
|
+
<![endif]-->
|
|
17
|
+
</head>
|
|
18
|
+
<body class="skin-blue" data-current-user="<%= current_user.to_json %>">
|
|
19
|
+
<%= yield %>
|
|
20
|
+
|
|
21
|
+
<%= javascript_include_tag Faalis::Engine.dashboard_js_manifest %>
|
|
22
|
+
<%= javascript_include_tag "locales/#{::I18n.locale}" %>
|
|
23
|
+
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
26
|
+
</head>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html class="bg-black" lang="<%= ::I18n.locale %>" dir="<%= Faalis::I18n.direction(I18n.locale) %>">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title><%= Faalis::Engine.site_title %></title>
|
|
6
|
+
|
|
7
|
+
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
|
8
|
+
<%= stylesheet_link_tag 'simple/' + Faalis::I18n.direction(I18n.locale) + "/application", media: "all" %>
|
|
9
|
+
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
10
|
+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
11
|
+
<!--[if lt IE 9]>
|
|
12
|
+
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
13
|
+
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
|
14
|
+
<![endif]-->
|
|
15
|
+
</head>
|
|
16
|
+
<body class="bg-black">
|
|
17
|
+
<%= yield %>
|
|
18
|
+
|
|
19
|
+
<%= javascript_include_tag 'simple' %>
|
|
20
|
+
<%= javascript_include_tag "locale/#{::I18n.locale}" %>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
data/dashstrap.gemspec
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'dashstrap/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'dashstrap'
|
|
8
|
+
spec.version = Dashstrap::VERSION
|
|
9
|
+
spec.authors = ['Sameer Rahmani']
|
|
10
|
+
spec.email = ['lxsameer@gnu.org']
|
|
11
|
+
spec.summary = %q{An awesome dashboard template for Faalis platform.}
|
|
12
|
+
spec.description = %q{An awesome dashboard template for Faalis platform. }
|
|
13
|
+
spec.homepage = 'https://github.com/Yellowen/dashstrap'
|
|
14
|
+
spec.license = 'GPLv2'
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
|
17
|
+
#spec.require_paths = ['lib', 'vendor/**/*']
|
|
18
|
+
|
|
19
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
|
20
|
+
spec.add_development_dependency 'rake'
|
|
21
|
+
#spec.add_development_dependency '"fast_gettext"'
|
|
22
|
+
spec.add_development_dependency 'gettext'
|
|
23
|
+
spec.add_development_dependency 'ruby_parser'
|
|
24
|
+
spec.add_development_dependency'gettext_i18n_rails'
|
|
25
|
+
|
|
26
|
+
spec.add_dependency 'less-rails'
|
|
27
|
+
spec.add_dependency 'railties'
|
|
28
|
+
spec.add_dependency 'faalis'
|
|
29
|
+
spec.add_dependency 'jquery-rails'
|
|
30
|
+
spec.add_dependency 'font-awesome-rails'
|
|
31
|
+
spec.add_dependency 'slim-rails'
|
|
32
|
+
|
|
33
|
+
spec.add_dependency 'jquery-ui-rails'
|
|
34
|
+
#spec.add_dependency 'rails-assets-angular-ui-bootstrap'
|
|
35
|
+
|
|
36
|
+
spec.add_dependency 'select2-rails'
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
end
|