customer_vault 1.0.4 → 1.1.0
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/customer_vault/individuals.css.scss +1 -1
- data/app/models/customer_vault/corporation.rb +1 -3
- data/app/models/customer_vault/individual.rb +0 -3
- data/app/models/customer_vault/person.rb +4 -1
- data/app/views/customer_vault/corporations/_form.html.slim +15 -28
- data/app/views/customer_vault/corporations/_show_details.html.slim +9 -36
- data/app/views/customer_vault/corporations/edit.html.slim +18 -22
- data/app/views/customer_vault/corporations/new.html.slim +19 -22
- data/app/views/customer_vault/corporations/show.html.slim +37 -39
- data/app/views/customer_vault/individuals/_form.html.slim +21 -58
- data/app/views/customer_vault/individuals/_show_details.html.slim +18 -52
- data/app/views/customer_vault/individuals/edit.html.slim +18 -22
- data/app/views/customer_vault/individuals/new.html.slim +18 -24
- data/app/views/customer_vault/individuals/show.html.slim +36 -38
- data/app/views/customer_vault/links/edit.html.slim +24 -29
- data/app/views/customer_vault/links/new.html.slim +21 -31
- data/app/views/customer_vault/people/_show_details.html.slim +4 -0
- data/app/views/customer_vault/people/index.html.slim +38 -42
- data/lib/customer_vault/version.rb +1 -1
- data/spec/dummy/app/assets/stylesheets/application.css.scss +4 -1
- data/spec/dummy/app/views/layouts/application.html.erb +4 -1
- data/spec/dummy/config/initializers/simple_form.rb +166 -0
- data/spec/dummy/config/initializers/simple_form_bootstrap.rb +136 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +23 -0
- data/spec/dummy/log/test.log +5997 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_background-variant.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_border-radius.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_center-block.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_clearfix.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_gradients.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_grid-framework.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_hide-text.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_image.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_labels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_list-group.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_nav-divider.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_nav-vertical-align.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_opacity.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_panels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_progress-bar.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_reset-filter.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_resize.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_responsive-visibility.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_size.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_tab-focus.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_table-row.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_text-emphasis.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_text-overflow.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/0006ff0dbef3ccde25358c9ccd9623709ea81b53/_vendor-prefixes.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_badges.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_button-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_carousel.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_close.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_code.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_component-animations.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_dropdowns.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_glyphicons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_input-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_jumbotron.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_labels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_list-group.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_media.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_modals.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_navs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_normalize.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_pager.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_panels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_popovers.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_print.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_progress-bars.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_responsive-embed.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_responsive-utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_scaffolding.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_tables.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_thumbnails.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_tooltip.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_type.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_variables.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/28f5033b184a8d363e7df1895646031709bf23d9/_wells.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/56e857cea6600c31fdc065577fa5347e2da021e2/application.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/c45223a4229be18e4ef8b2889ae32d342f503af2/application.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/c45223a4229be18e4ef8b2889ae32d342f503af2/corporations.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/c45223a4229be18e4ef8b2889ae32d342f503af2/individuals.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/c45223a4229be18e4ef8b2889ae32d342f503af2/links.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/c45223a4229be18e4ef8b2889ae32d342f503af2/pagination.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/fc4b9279400c8168c697f5ed561bb8ccb52e5f67/_bootstrap-sprockets.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sass/fc4b9279400c8168c697f5ed561bb8ccb52e5f67/_bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0c6cbcfd2ac7886202376c7ff932d8d5 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/0e50063452927b05bf1f53a77b8e1137 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1aa6c8eaf0c76ce805ac43b02283d751 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1ee39033188b9385986e53a569323f2d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/22344f083e6fdddd40440917b532687f +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2c871132412a58427eec073d719b9c38 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2dba1fb8d155139d6e88e90a54e8ea8b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3161dca95ec50f801a01d3e22fb5a571 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/32f555f2191136849fe39ad6d37dee22 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/354c87ada66ea34ea3c3449b27de58d4 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/36781c5ac8b6dd644e3ca64350e7c4e9 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3721b00ad6c043329fa66726d9b9766b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/374e8b5a7fe9a2a0e05d456e3fdec438 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/4158957758e07d2d90c27f200a55df25 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/45aae7f5bdd0876ef98c35e412449d7c +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/509cd3bf7f4178cdd28f6396059d8064 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5593457c78faf74ab5308d8e28b42f30 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5695dcc93e3c4ef99a30619b849d1c3d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5998b5c9de215f55b8b703679fbcc8ff +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5a1f7c9a00361b886dd09ad73978c41b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/5d044f664c09e7a71e2f8d23dc5bb56b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/616166c8bb883e423e177bd4d0d2bfea +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/78352579e0a2c6b74f748f3f72cd1740 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/7d34cbd8d9384581d87985945ae4b2dd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/816ac58210c0e421e3b917d1b904ec56 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/874dd89a49c981cf15547f8d4516e687 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8848aeeeb383bb5baf3d5f392ec1059b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8a8cfc599d8aea7460fed2beba8fc345 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/8e55cf0f42842afed2d9cae7f635fb01 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9b427fa817fc87c50cd9c2303ea86f48 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/9cdbd650c50c41fdad744161154494a8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a10a46afa0ac441a29a9efa24daf92bd +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/aa6fa76c4337a1adad7826733bc3e663 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ae2e6efe49141b338780cb8edab0c36d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/c21b81dce4b87e00269e63c88e442790 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ccf97877cc1f4cd5908d329f4658389b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ce2f31234f91c10ad1f25d45ef853cb8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d01dbffb7f991cfaee5cab6047ca38ab +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d252cd2d8331650e15079d2f240d2fac +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/de3bbe108e9180b23f46194de4798d16 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e0694f7a79337d4122781ad44459b1be +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e6d68508fff41e6a609844ae027f8876 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/e7cf35278e58bf137a350db4a5b671ba +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ef3ef1c4ffb6f99196e212111134278b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f3afb46614704db50013e463449e2a5b +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fd07e1a9bf65d83191423a76bced6350 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/fd6200b8231389d837487fc9f0e6682e +0 -0
- metadata +265 -17
- data/app/views/customer_vault/links/_aside.html.slim +0 -4
@@ -1,23 +1,19 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
.col-lg-12
|
10
|
-
.col-lg-4
|
11
|
-
.aside.col-lg-12
|
12
|
-
.row
|
13
|
-
.col-lg-12.cdiv
|
14
|
-
=image_tag ('customer_vault/icons/individual-64.png')
|
15
|
-
.row
|
16
|
-
.col-lg-12.cdiv
|
17
|
-
h3 class = "text-muted" #{@individual.first_name} #{@individual.last_name}
|
18
|
-
- if @individual.errors.any?
|
19
|
-
= render partial: 'customer_vault/layout/form_error', :locals => {:p => @individual}
|
20
|
-
.col-lg-8
|
21
|
-
.col-lg-12.cadre
|
22
|
-
== render 'form'
|
1
|
+
- content_for :sub_header do
|
2
|
+
ol.breadcrumb
|
3
|
+
li
|
4
|
+
= link_to 'Home', '/'
|
5
|
+
li
|
6
|
+
= link_to 'People', customer_vault.people_path
|
7
|
+
li.active
|
8
|
+
= "Edit #{@individual.first_name} #{@individual.last_name}"
|
23
9
|
|
10
|
+
- content_for :context do
|
11
|
+
.individual-context: .context
|
12
|
+
= context_icon :user
|
13
|
+
= context_title @individual.name
|
14
|
+
|
15
|
+
- content_for :main do
|
16
|
+
.cadre
|
17
|
+
= render "form"
|
18
|
+
|
19
|
+
= render "agilidee_commons/contextual"
|
@@ -1,25 +1,19 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
.col-lg-12
|
11
|
-
.col-lg-4
|
12
|
-
aside.col-lg-12.cadre
|
13
|
-
.row
|
14
|
-
.col-lg-12.cdiv
|
15
|
-
=image_tag ('customer_vault/icons/individual-64.png')
|
16
|
-
.row
|
17
|
-
.col-lg-12.cdiv
|
18
|
-
h3.text-muted New Individual
|
19
|
-
|
20
|
-
- if @individual.errors.any?
|
21
|
-
= render partial: 'customer_vault/layout/form_error', :locals => {:p => @individual}
|
22
|
-
.col-lg-8
|
23
|
-
.col-lg-12.cadre
|
24
|
-
== render 'form'
|
1
|
+
- content_for :sub_header do
|
2
|
+
ol.breadcrumb
|
3
|
+
li
|
4
|
+
= link_to 'Home', '/'
|
5
|
+
li
|
6
|
+
= link_to 'People', customer_vault.people_path
|
7
|
+
li.active
|
8
|
+
= "New individual"
|
25
9
|
|
10
|
+
- content_for :context do
|
11
|
+
.individual-context: .context
|
12
|
+
= context_icon :user
|
13
|
+
= context_title "New individual"
|
14
|
+
|
15
|
+
- content_for :main do
|
16
|
+
.cadre
|
17
|
+
= render "form"
|
18
|
+
|
19
|
+
= render "agilidee_commons/contextual"
|
@@ -1,42 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
.col-lg-12
|
10
|
-
.col-lg-4
|
11
|
-
= render partial: 'show_details', locals: {individual: @individual}
|
12
|
-
.col-lg-8
|
13
|
-
.col-lg-12
|
14
|
-
ul.nav.nav-tabs role="tablist"
|
15
|
-
li.active
|
16
|
-
a data-toggle="tab" href="#linkable" role="tab" Links
|
17
|
-
li
|
18
|
-
a data-toggle="tab" href="#history" role="tab" History
|
19
|
-
li
|
20
|
-
a data-toggle="tab" href="#todos" role="tab" Todos
|
1
|
+
- content_for :sub_header do
|
2
|
+
ol.breadcrumb
|
3
|
+
li
|
4
|
+
= link_to 'Home', '/'
|
5
|
+
li
|
6
|
+
= link_to 'People', customer_vault.people_path
|
7
|
+
li.active
|
8
|
+
= "#{@individual.first_name} #{@individual.last_name}"
|
21
9
|
|
22
|
-
|
23
|
-
|
24
|
-
ul.linkable
|
25
|
-
- @individual.links.each do |link|
|
26
|
-
li.person
|
27
|
-
- target = link[:person]
|
28
|
-
- if target.instance_of? CustomerVault::Individual
|
29
|
-
= render partial: 'customer_vault/individuals/list_details', :locals => {:i => target, person: @individual, link: link[:origin]}
|
30
|
-
- if target.instance_of? CustomerVault::Corporation
|
31
|
-
= render partial: 'customer_vault/corporations/list_details', :locals => {:c => target, person: @individual, link: link[:origin]}
|
10
|
+
- content_for :context
|
11
|
+
= render partial: "show_details", locals: {individual: @individual}
|
32
12
|
|
13
|
+
- content_for :main
|
14
|
+
ul.nav.nav-tabs role="tablist"
|
15
|
+
li.active
|
16
|
+
a data-toggle="tab" href="#linkable" role="tab" Links
|
17
|
+
li
|
18
|
+
a data-toggle="tab" href="#history" role="tab" History
|
19
|
+
li
|
20
|
+
a data-toggle="tab" href="#todos" role="tab" Todos
|
33
21
|
|
22
|
+
.tab-content
|
23
|
+
#linkable.tab-pane.active
|
24
|
+
ul.linkable
|
25
|
+
- @individual.links.each do |link|
|
26
|
+
li.person
|
27
|
+
- target = link[:person]
|
28
|
+
- if target.instance_of? CustomerVault::Individual
|
29
|
+
= render partial: 'customer_vault/individuals/list_details', locals: {i: target, person: @individual, link: link[:origin]}
|
30
|
+
- if target.instance_of? CustomerVault::Corporation
|
31
|
+
= render partial: 'customer_vault/corporations/list_details', locals: {c: target, person: @individual, link: link[:origin]}
|
32
|
+
|
33
|
+
= link_to 'New link', customer_vault.new_individual_link_path(@individual.id), class: "btn btn-success", id: 'new-link'
|
34
|
+
|
35
|
+
#history.tab-pane
|
36
|
+
p = "History is soon to come"
|
37
|
+
#todos.tab-pane
|
38
|
+
p = "Todos are soon to come"
|
34
39
|
|
35
|
-
|
36
|
-
#history.tab-pane
|
37
|
-
p
|
38
|
-
' History is soon to come
|
39
|
-
#todos.tab-pane
|
40
|
-
p
|
41
|
-
' Todos are soon to come
|
42
|
-
|
40
|
+
= render "agilidee_commons/contextual"
|
@@ -1,30 +1,25 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
- content_for :sub_header do
|
2
|
+
ol.breadcrumb
|
3
|
+
li
|
4
|
+
= link_to 'Home', '/'
|
5
|
+
li
|
6
|
+
= link_to 'People', customer_vault.people_path
|
7
|
+
li
|
8
|
+
= link_to "#{@person.name}", [customer_vault, @person]
|
9
|
+
li
|
10
|
+
= @link.title
|
11
|
+
li.active
|
12
|
+
= "Edit "
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
.actions
|
28
|
-
div class= "cdiv"
|
29
|
-
= f.submit 'Save', :class=>"btn btn-success btn-sm", id: 'submit-link'
|
30
|
-
= link_to 'Back', [customer_vault, @person], :class=>"btn btn-primary btn-sm"
|
14
|
+
- content_for :context do
|
15
|
+
= render partial: "customer_vault/people/show_details", locals: {person: @person}
|
16
|
+
|
17
|
+
- content_for :main do
|
18
|
+
.cadre
|
19
|
+
h1 = (@link.alice_id == @person.id) && (@link.alice_type == @person.class.to_s) ? @link.bob.name : @link.alice.name
|
20
|
+
|
21
|
+
= horizontal_form_for [customer_vault, @person, @link] do |f|
|
22
|
+
= f.input :title
|
23
|
+
= form_buttons
|
24
|
+
|
25
|
+
= render "agilidee_commons/contextual"
|
@@ -1,32 +1,22 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
- content_for :sub_header do
|
2
|
+
ol.breadcrumb
|
3
|
+
li
|
4
|
+
= link_to 'Home', '/'
|
5
|
+
li
|
6
|
+
= link_to 'People', customer_vault.people_path
|
7
|
+
li
|
8
|
+
= link_to "#{@person.name}", [customer_vault, @person]
|
9
|
+
li.active
|
10
|
+
= "New link"
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
.form-group
|
25
|
-
=f.label "Title" , class:"control-label col-lg-2"
|
26
|
-
.col-lg-10
|
27
|
-
=f.text_field :title, class:"form-control"
|
28
|
-
|
29
|
-
.actions
|
30
|
-
div class= "cdiv"
|
31
|
-
= f.submit 'Save', :class=>"btn btn-success btn-sm", id: 'submit-link'
|
32
|
-
= link_to 'Back', [customer_vault, @person], :class=>"btn btn-primary btn-sm"
|
12
|
+
- content_for :context do
|
13
|
+
= render partial: "customer_vault/people/show_details", locals: {person: @person}
|
14
|
+
|
15
|
+
- content_for :main do
|
16
|
+
.cadre
|
17
|
+
= horizontal_form_for [customer_vault, @person, @link] do |f|
|
18
|
+
= f.input :bob, collection: CustomerVault::Person.list.map{ |e| [e.name, "#{e.class}-#{e.id}"] }, label: "Target"
|
19
|
+
= f.input :title
|
20
|
+
= form_buttons
|
21
|
+
|
22
|
+
= render "agilidee_commons/contextual"
|
@@ -0,0 +1,4 @@
|
|
1
|
+
- if person.instance_of? CustomerVault::Individual
|
2
|
+
= render partial: 'customer_vault/individuals/show_details', locals: {individual: person}
|
3
|
+
- if person.instance_of? CustomerVault::Corporation
|
4
|
+
= render partial: 'customer_vault/corporations/show_details', locals: {corporation: person}
|
@@ -1,42 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
.row
|
40
|
-
.cdiv
|
41
|
-
= paginate @people
|
42
|
-
|
1
|
+
- content_for :sub_header do
|
2
|
+
ol.breadcrumb
|
3
|
+
li
|
4
|
+
= link_to 'Home', '/'
|
5
|
+
li.active
|
6
|
+
= "People"
|
7
|
+
|
8
|
+
- content_for :context do
|
9
|
+
.individual-context: .context
|
10
|
+
= context_icon :user
|
11
|
+
= link_to "New individual", customer_vault.new_individual_path, class: "btn btn-success"
|
12
|
+
|
13
|
+
.corporation-context: .context
|
14
|
+
= context_icon :users
|
15
|
+
= link_to "New corporation", customer_vault.new_corporation_path, class: "btn btn-success"
|
16
|
+
|
17
|
+
- content_for :main do
|
18
|
+
- if @people.empty?
|
19
|
+
h1 = "There isn't any people"
|
20
|
+
|
21
|
+
- else
|
22
|
+
p.sorting
|
23
|
+
= "Trier par : "
|
24
|
+
= sortable_column 'Nom', :column => "name"
|
25
|
+
= ", "
|
26
|
+
= sortable_column 'Code postal', :column => "zip"
|
27
|
+
|
28
|
+
ul.people
|
29
|
+
- @people.each do |person|
|
30
|
+
li.person
|
31
|
+
- if person.instance_of? CustomerVault::Individual
|
32
|
+
= render partial: 'customer_vault/individuals/list_details', locals: {i: person}
|
33
|
+
- if person.instance_of? CustomerVault::Corporation
|
34
|
+
= render partial: 'customer_vault/corporations/list_details', locals: {c: person}
|
35
|
+
|
36
|
+
= paginate @people
|
37
|
+
|
38
|
+
= render "agilidee_commons/contextual"
|
@@ -0,0 +1,166 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
4
|
+
# complete input. You can remove any component from the
|
5
|
+
# wrapper, change the order or even add your own to the
|
6
|
+
# stack. The options given below are used to wrap the
|
7
|
+
# whole input.
|
8
|
+
config.wrappers :default, class: :input,
|
9
|
+
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
|
10
|
+
## Extensions enabled by default
|
11
|
+
# Any of these extensions can be disabled for a
|
12
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
+
# You can make any of these extensions optional by
|
14
|
+
# renaming `b.use` to `b.optional`.
|
15
|
+
|
16
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
+
# and required attributes
|
18
|
+
b.use :html5
|
19
|
+
|
20
|
+
# Calculates placeholders automatically from I18n
|
21
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
+
b.use :placeholder
|
23
|
+
|
24
|
+
## Optional extensions
|
25
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
27
|
+
# if any exists. If you want to enable any of those
|
28
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
+
|
30
|
+
# Calculates maxlength from length validations for string inputs
|
31
|
+
b.optional :maxlength
|
32
|
+
|
33
|
+
# Calculates pattern from format validations for string inputs
|
34
|
+
b.optional :pattern
|
35
|
+
|
36
|
+
# Calculates min and max from length validations for numeric inputs
|
37
|
+
b.optional :min_max
|
38
|
+
|
39
|
+
# Calculates readonly automatically from readonly attributes
|
40
|
+
b.optional :readonly
|
41
|
+
|
42
|
+
## Inputs
|
43
|
+
b.use :label_input
|
44
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
+
b.use :error, wrap_with: { tag: :span, class: :error }
|
46
|
+
|
47
|
+
## full_messages_for
|
48
|
+
# If you want to display the full error message for the attribute, you can
|
49
|
+
# use the component :full_error, like:
|
50
|
+
#
|
51
|
+
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
52
|
+
end
|
53
|
+
|
54
|
+
# The default wrapper to be used by the FormBuilder.
|
55
|
+
config.default_wrapper = :default
|
56
|
+
|
57
|
+
# Define the way to render check boxes / radio buttons with labels.
|
58
|
+
# Defaults to :nested for bootstrap config.
|
59
|
+
# inline: input + label
|
60
|
+
# nested: label > input
|
61
|
+
config.boolean_style = :nested
|
62
|
+
|
63
|
+
# Default class for buttons
|
64
|
+
config.button_class = 'btn'
|
65
|
+
|
66
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
67
|
+
# :first lists the first message for each field.
|
68
|
+
# Use :to_sentence to list all errors for each field.
|
69
|
+
# config.error_method = :first
|
70
|
+
|
71
|
+
# Default tag used for error notification helper.
|
72
|
+
config.error_notification_tag = :div
|
73
|
+
|
74
|
+
# CSS class to add for error notification helper.
|
75
|
+
config.error_notification_class = 'error_notification'
|
76
|
+
|
77
|
+
# ID to add for error notification helper.
|
78
|
+
# config.error_notification_id = nil
|
79
|
+
|
80
|
+
# Series of attempts to detect a default label method for collection.
|
81
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
82
|
+
|
83
|
+
# Series of attempts to detect a default value method for collection.
|
84
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
85
|
+
|
86
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
87
|
+
# config.collection_wrapper_tag = nil
|
88
|
+
|
89
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
90
|
+
# config.collection_wrapper_class = nil
|
91
|
+
|
92
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
93
|
+
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
94
|
+
# SimpleForm will force this option to be a label.
|
95
|
+
# config.item_wrapper_tag = :span
|
96
|
+
|
97
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
98
|
+
# config.item_wrapper_class = nil
|
99
|
+
|
100
|
+
# How the label text should be generated altogether with the required text.
|
101
|
+
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
102
|
+
|
103
|
+
# You can define the class to use on all labels. Default is nil.
|
104
|
+
# config.label_class = nil
|
105
|
+
|
106
|
+
# You can define the default class to be used on forms. Can be overriden
|
107
|
+
# with `html: { :class }`. Defaulting to none.
|
108
|
+
# config.default_form_class = nil
|
109
|
+
|
110
|
+
# You can define which elements should obtain additional classes
|
111
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
112
|
+
|
113
|
+
# Whether attributes are required by default (or not). Default is true.
|
114
|
+
# config.required_by_default = true
|
115
|
+
|
116
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
117
|
+
# These validations are enabled in SimpleForm's internal config but disabled by default
|
118
|
+
# in this configuration, which is recommended due to some quirks from different browsers.
|
119
|
+
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
120
|
+
# change this configuration to true.
|
121
|
+
config.browser_validations = false
|
122
|
+
|
123
|
+
# Collection of methods to detect if a file type was given.
|
124
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
125
|
+
|
126
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
127
|
+
# to match as key, and the input type that will be used when the field name
|
128
|
+
# matches the regexp as value.
|
129
|
+
# config.input_mappings = { /count/ => :integer }
|
130
|
+
|
131
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
132
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
133
|
+
# config.wrapper_mappings = { string: :prepend }
|
134
|
+
|
135
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
136
|
+
# override default inputs.
|
137
|
+
# config.custom_inputs_namespaces << "CustomInputs"
|
138
|
+
|
139
|
+
# Default priority for time_zone inputs.
|
140
|
+
# config.time_zone_priority = nil
|
141
|
+
|
142
|
+
# Default priority for country inputs.
|
143
|
+
# config.country_priority = nil
|
144
|
+
|
145
|
+
# When false, do not use translations for labels.
|
146
|
+
# config.translate_labels = true
|
147
|
+
|
148
|
+
# Automatically discover new inputs in Rails' autoload path.
|
149
|
+
# config.inputs_discovery = true
|
150
|
+
|
151
|
+
# Cache SimpleForm inputs discovery
|
152
|
+
# config.cache_discovery = !Rails.env.development?
|
153
|
+
|
154
|
+
# Default class for inputs
|
155
|
+
# config.input_class = nil
|
156
|
+
|
157
|
+
# Define the default class of the input wrapper of the boolean input.
|
158
|
+
config.boolean_label_class = 'checkbox'
|
159
|
+
|
160
|
+
# Defines if the default input wrapper class should be included in radio
|
161
|
+
# collection wrappers.
|
162
|
+
# config.include_default_input_wrapper_class = true
|
163
|
+
|
164
|
+
# Defines which i18n scope will be used in Simple Form.
|
165
|
+
# config.i18n_scope = 'simple_form'
|
166
|
+
end
|