commenteux 1.1.2 → 1.1.3
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 +4 -4
- data/README.rdoc +19 -1
- data/app/assets/javascripts/commenteux/application.js.coffee +18 -16
- data/app/controllers/commenteux/notes_controller.rb +66 -18
- data/app/helpers/commenteux/notes_helper.rb +5 -3
- data/app/helpers/commenteux/users_helper.rb +11 -0
- data/app/views/commenteux/notes/index.html.erb +13 -4
- data/app/views/commenteux/notes/new.html.erb +11 -2
- data/config/cucumber.yml +2 -0
- data/lib/commenteux/version.rb +1 -1
- data/spec/controllers/commenteux/notes_controller_spec.rb +135 -25
- data/spec/dummy/app/models/dummy_model.rb +1 -1
- data/spec/dummy/app/models/dummy_no_role_model.rb +3 -0
- data/spec/dummy/config/locales/en.yml +2 -0
- data/spec/dummy/db/migrate/20150612102101_create_dummy_no_role_models.rb +10 -0
- data/spec/dummy/db/schema.rb +7 -1
- data/spec/dummy/log/development.log +14 -1142
- data/spec/dummy/log/test.log +2334 -47
- data/spec/dummy/tmp/cache/assets/test/sprockets/{af00b28760a09c0a6fd6fe584cbb839d → 0ea5157d06860900da5e91e9e9e5c5ae} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/1961e9a889917e26f9b92f7e3678b9d8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{6e1da15bffb0094059fbe56ddb206c07 → 4c0092a53cfc0cf92b75c45eea8e0c9c} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{1957ff8c0d834428d5beca5bf51669b2 → d47c40f60d1e15e0c67f7f18a27a34e2} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/db2a42fb4a2ea58dddbe086ea7cbd8c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/{9fbd3d6762f09cbefd55f6775cf9bebe → e8a6cef31bf116819ca4efd46d92cf23} +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506160848572837541916.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160849002657266256.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506160849005456490075.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506160849006051257852.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160849009617311507.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506160851032943006672.html +49 -0
- data/spec/dummy/tmp/capybara/capybara-201506160851033032648231.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506160851033315623084.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506160851038790165986.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506160855125750188512.html +49 -0
- data/spec/dummy/tmp/capybara/capybara-20150616085514290901703.html +46 -0
- data/spec/dummy/tmp/capybara/capybara-201506160902299004854094.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160903467053840829.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160908177506055011.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506160908405071238114.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506160912457681959819.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160914361347465054.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160919206069916380.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160919495766672705.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160921512325089167.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160925246853939548.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-20150616092631910193376.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506160927256081238729.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160929587747316609.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160932376393920368.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506160949097224889578.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506161015165425533754.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506161017005963312932.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506161018087481300351.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506161018585177596998.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506161021234628016602.html +0 -0
- data/spec/dummy/tmp/capybara/capybara-201506161021316159221359.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506161022216700801596.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506161028066297282377.html +1 -0
- data/spec/dummy/tmp/capybara/capybara-201506161028161304521095.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506161029222052955082.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506161030551952925736.html +50 -0
- data/spec/dummy/tmp/capybara/capybara-201506170925205207947945.html +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-48-57.908.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-48-57.908.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-49-00.472.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-49-00.472.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-51-03.616.html +49 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-51-03.616.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-12.417.html +49 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-12.417.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-14.688.html +46 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-14.688.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-02-29.270.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-02-29.270.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-03-46.063.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-03-46.063.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-12-46.560.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-12-46.560.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-14-36.456.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-14-36.456.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-20.502.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-20.502.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-49.861.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-49.861.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-21-51.126.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-21-51.126.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-25-24.066.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-25-24.066.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-27-25.369.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-27-25.369.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-29-58.010.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-29-58.010.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-32-37.472.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-32-37.472.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-17-00.415.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-17-00.415.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-08.307.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-08.307.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-58.249.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-58.249.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-22-21.961.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-22-21.961.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-28-16.319.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-28-16.319.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-29-22.339.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-29-22.339.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-30-55.591.html +50 -0
- data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-30-55.591.png +0 -0
- data/spec/fabricators/comments_frabricator.rb +2 -0
- data/spec/fabricators/dummy_no_role_models_fabricator.rb +3 -0
- data/spec/helpers/commenteux/notes_helper_spec.rb +13 -5
- data/spec/helpers/commenteux/users_helper_spec.rb +14 -0
- metadata +189 -42
- data/spec/dummy/tmp/cache/assets/development/sprockets/078e8a1b7bb61498dbae0070239e8f4c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1957ff8c0d834428d5beca5bf51669b2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1961e9a889917e26f9b92f7e3678b9d8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6e1da15bffb0094059fbe56ddb206c07 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9fbd3d6762f09cbefd55f6775cf9bebe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/af00b28760a09c0a6fd6fe584cbb839d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d72f8bdb1dcb7ea80d1869cb2c6ebbd3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/db2a42fb4a2ea58dddbe086ea7cbd8c3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ec516d6bcfdc219883f1ddb03b5a635b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d72f8bdb1dcb7ea80d1869cb2c6ebbd3 +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
3
|
+
<title>Dummy</title>
|
|
4
|
+
<link rel="stylesheet" media="all" href="/assets/application.css" data-turbolinks-track="true" />
|
|
5
|
+
<script src="/assets/application.js" data-turbolinks-track="true"></script>
|
|
6
|
+
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
|
|
12
|
+
$(".simple_form").submit(function (event) {
|
|
13
|
+
$("<input type='text' value='" + comments,delivery_man + "' />")
|
|
14
|
+
.attr("id", "roles")
|
|
15
|
+
.attr("name", "roles")
|
|
16
|
+
.appendTo(".simple_form");
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<form novalidate="novalidate" method="post" id="new_comments" data-remote="true" data-parent="null" class="simple_form new_comments" action="/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
|
|
22
|
+
|
|
23
|
+
<div style="display:none">
|
|
24
|
+
<div class="control-group string optional comments_title"><label for="comments_title" class="string optional control-label">Title</label><div class="controls"><input type="text" value="" name="comments[title]" id="comments_title" class="string optional" /></div></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="control-group text optional comments_comment"><label for="comments_comment" class="text optional control-label">Commentaire</label><div class="controls"><textarea name="comments[comment]" id="comments_comment" class="text optional"></textarea></div></div>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<div class="control-group radio_buttons optional comments_role"><label class="radio_buttons optional control-label">Rôle</label><div class="controls"><label class="radio inline"><input type="radio" value="comments" name="comments[role]" id="comments_role_comments" data-required="true" class="radio_buttons optional" checked="checked" />comments</label><label class="radio inline"><input type="radio" value="delivery_man" name="comments[role]" id="comments_role_delivery_man" data-required="true" class="radio_buttons optional" />delivery_man</label></div></div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class="form-actions form-actions-padding-sm">
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col-md-10 col-md-offset-5">
|
|
35
|
+
|
|
36
|
+
<button id="save" type="submit" class="btn btn-primary">
|
|
37
|
+
Enregistrer
|
|
38
|
+
</button>
|
|
39
|
+
|
|
40
|
+
<a id="new_notes_cancelled" href="#" data-roles="comments,delivery_man" data-resource="dummy_model" data-parent="null" data-id="1" class="btn">Annuler</a>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
</form>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</body></html>
|