caseadilla 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/caseadilla/caseadilla-bootstrap-overrides.css.scss +1 -0
- data/app/views/caseadilla/caseadilla/blank.html.erb +8 -10
- data/app/views/caseadilla/roles/_form.html.erb +2 -2
- data/app/views/caseadilla/users/new.html.erb +7 -7
- data/app/views/caseadilla/users/show.html.erb +5 -5
- data/app/views/layouts/caseadilla_main.html.erb +5 -3
- data/lib/caseadilla/version.rb +1 -1
- data/lib/generators/caseadilla/scaffold/templates/views/_form.html.erb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48623f5e7e79c4b923b12eb91e1095c3851f3af
|
4
|
+
data.tar.gz: fb1c957602e8e67f40e6e7d90a341883e8e5e3bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea31aa4da299bf4fdbeb44ddee077b0b510f3dca717e1d9cda39b357c0987a5611f6519c819b25142d2863920bd59795e6411b1cbd807185feadf84ba885c32
|
7
|
+
data.tar.gz: 7f7c79861c19cba634f9adefa3f8e1f1793b672ce0c448820501808b4a2b972f79d79f3787cae847d44bc6b85bf473b5cef2d770c17be05207e1cc7d741bb5b9
|
@@ -33,6 +33,7 @@ div.navbar.navbar-static-top.navbar-default.caseadilla-nav button.navbar-toggle
|
|
33
33
|
div.navbar.navbar-static-top.navbar-default.caseadilla-nav > div.navbar-offcanvas.offcanvas.navbar-inverse {
|
34
34
|
background-color: #222;
|
35
35
|
border-color: #080808;
|
36
|
+
max-width: 160px;
|
36
37
|
li.divider {
|
37
38
|
border-bottom: 1px solid #333;
|
38
39
|
width: 100%;
|
@@ -1,12 +1,10 @@
|
|
1
1
|
<br />
|
2
2
|
<br />
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</div>
|
12
|
-
</div>
|
3
|
+
<div class="jumbotron" style="text-align: center;">
|
4
|
+
<h1>Welcome to Caseadilla</h1>
|
5
|
+
<br />
|
6
|
+
<p>You’re ready to begin scaffolding and customizing!</p>
|
7
|
+
<p><small style="font-size: 0.7em;">To remove this screen, set <code>caseadilla_config_dashboard_url</code></small></p>
|
8
|
+
<br />
|
9
|
+
<p><a href="https://github.com/zeiv/caseadilla/blob/master/README.rdoc" class="btn btn-primary btn-large">View README on GitHub</a></p>
|
10
|
+
</div>
|
@@ -3,19 +3,19 @@
|
|
3
3
|
<%= form_for @caseadilla_user, url: caseadilla_users_path do |form| %>
|
4
4
|
|
5
5
|
<div class="row">
|
6
|
-
<div class="col-
|
6
|
+
<div class="col-sm-6">
|
7
7
|
<%= caseadilla_text_field form, @caseadilla_user, :first_name %>
|
8
8
|
</div>
|
9
|
-
<div class="col-
|
9
|
+
<div class="col-sm-6">
|
10
10
|
<%= caseadilla_text_field form, @caseadilla_user, :last_name %>
|
11
11
|
</div>
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<div class="row">
|
15
|
-
<div class="col-
|
15
|
+
<div class="col-sm-6">
|
16
16
|
<%= caseadilla_text_field form, @caseadilla_user, :email %>
|
17
17
|
</div>
|
18
|
-
<div class="col-
|
18
|
+
<div class="col-sm-6">
|
19
19
|
<%= caseadilla_time_zone_select form, @caseadilla_user, :time_zone, ActiveSupport::TimeZone.us_zones %>
|
20
20
|
</div>
|
21
21
|
</div>
|
@@ -23,13 +23,13 @@
|
|
23
23
|
<!-- TODO: User roles -->
|
24
24
|
|
25
25
|
<div class="row">
|
26
|
-
<div class="col-
|
26
|
+
<div class="col-sm-6">
|
27
27
|
<%= caseadilla_password_field form, @caseadilla_user, :password, {:caseadilla_label => "Password"} %>
|
28
28
|
</div>
|
29
|
-
<div class="col-
|
29
|
+
<div class="col-sm-6">
|
30
30
|
<%= caseadilla_password_field form, @caseadilla_user, :password_confirmation, {:caseadilla_label => "Repeat password"} %>
|
31
31
|
</div>
|
32
|
-
<div class="col-
|
32
|
+
<div class="col-sm-12 password-checkbox">
|
33
33
|
<div class="checkbox">
|
34
34
|
<label>
|
35
35
|
<%= check_box_tag :generate_random_password, "1", false, {:id => 'generate-random-password-checkbox'} %> Generate random password
|
@@ -3,25 +3,25 @@
|
|
3
3
|
<%= simple_form_for @caseadilla_user, as: resource_name, url: caseadilla_user_path(@caseadilla_user), html:{ method: :put } do |f| %>
|
4
4
|
|
5
5
|
<div class="row">
|
6
|
-
<div class="col-
|
6
|
+
<div class="col-sm-6">
|
7
7
|
<%= caseadilla_text_field f, f.object, :first_name, {value: @caseadilla_user.first_name, caseadilla_label: "First name"} %>
|
8
8
|
</div>
|
9
|
-
<div class="col-
|
9
|
+
<div class="col-sm-6">
|
10
10
|
<%= caseadilla_text_field f, f.object, :last_name, {value: @caseadilla_user.last_name, caseadilla_label: "Last name"} %>
|
11
11
|
</div>
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<div class="row">
|
15
|
-
<div class="col-
|
15
|
+
<div class="col-sm-6">
|
16
16
|
<%= caseadilla_text_field f, f.object, :email, {value: @caseadilla_user.email} %>
|
17
17
|
</div>
|
18
|
-
<div class="col-
|
18
|
+
<div class="col-sm-6">
|
19
19
|
<%= caseadilla_time_zone_select f, f.object, :time_zone, ActiveSupport::TimeZone.us_zones, {selected: @caseadilla_user.time_zone} %>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
|
23
23
|
<div class="row">
|
24
|
-
<div class="col-
|
24
|
+
<div class="col-sm-6">
|
25
25
|
<%= caseadilla_collection_select f, f.object, :role_id, Role.all, :id, :title, {selected: @caseadilla_user.role_id} %>
|
26
26
|
</div>
|
27
27
|
</div>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<body>
|
32
32
|
<div class="navbar navbar-static-top navbar-default caseadilla-nav" role="navigation">
|
33
33
|
<% if current_user != nil %>
|
34
|
-
<div class="container hidden-
|
34
|
+
<div class="container hidden-xs">
|
35
35
|
<div id="user-info">
|
36
36
|
<ul>
|
37
37
|
<li>Hello <%= link_to current_user.first_name, caseadilla_user_path(current_user) %></li>
|
@@ -60,15 +60,17 @@
|
|
60
60
|
</button>
|
61
61
|
</div>
|
62
62
|
|
63
|
-
<div class="container hidden-
|
63
|
+
<div class="container hidden-xs">
|
64
64
|
<ul class="nav navbar-nav">
|
65
65
|
<%= render :partial => '/caseadilla/layouts/tab_navigation' %>
|
66
66
|
</ul>
|
67
67
|
</div>
|
68
68
|
|
69
69
|
<div class='navbar-offcanvas offcanvas navbar-inverse'>
|
70
|
-
<div class="container hidden-md hidden-lg">
|
70
|
+
<div class="container hidden-sm hidden-md hidden-lg">
|
71
71
|
<ul class="nav navbar-nav">
|
72
|
+
<li><%= link_to 'Home', caseadilla_root_path %></li>
|
73
|
+
<li class="divider"></li>
|
72
74
|
<%= render :partial => '/caseadilla/layouts/tab_navigation' %>
|
73
75
|
<li class="divider"></li>
|
74
76
|
<% if current_user != nil %>
|
data/lib/caseadilla/version.rb
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
<% attribute_itr = 0 %>
|
3
3
|
<% while attribute_itr < attributes.count %>
|
4
4
|
<div class="row">
|
5
|
-
<div class="col-
|
5
|
+
<div class="col-sm-6">
|
6
6
|
<%%= caseadilla_<%= field_type(attributes[attribute_itr].type).to_s %> f, f.object, :<%= attributes[attribute_itr].name %><%= ", {:readonly => true}" if @read_only %> %>
|
7
7
|
</div><% attribute_itr += 1 %>
|
8
|
-
<div class="col-
|
8
|
+
<div class="col-sm-6">
|
9
9
|
<% if attribute_itr < attributes.count %><%%= caseadilla_<%= field_type(attributes[attribute_itr].type).to_s %> f, f.object, :<%= attributes[attribute_itr].name %><%= ", {:readonly => true}" if @read_only %> %><% end %>
|
10
10
|
</div><% attribute_itr += 1 %>
|
11
11
|
</div>
|