Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_form.erb
More file actions
Latest commit
62 lines (62 loc) · 3.26 KB
/
Copy pathcreate_form.erb
File metadata and controls
62 lines (62 loc) · 3.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!-- This is your own customizable scripted job creation form. -->
<!-- You can add ids and classes or change copy. -->
<!-- Place it wherever you want. -->
<!-- It will only appear when you call ScriptedJob.setFormat with a valid Scripted format_id. -->
<divid="scr-ko-wrpr" data-bind="with: ScriptedJob">
<formid="scr-ko-form" data-bind="event: { submit: submit }">
<divdata-bind="if:format() != undefined">
<divdata-bind="if:tooFew()" class='alert'>
<h2>Warning! <spandata-bind="text:format().pluralName()"></span> must be ordered in batches of at least <spandata-bind="text:format().minCount"></span></h2>
</div>
<divdata-bind="if:errors().length > 0" class='alert'>
<uldata-bind="foreach: errors">
<li>Error: <spandata-bind="text:$data"></span></li>
</ul>
</div>
<h1data-bind="text:format().name"></h1>
<p>Get <inputtype="text" name="count" data-bind="value: count"><spandata-bind="text:format().pluralName()"></span> for $<spandata-bind="text:price()"></span></p>
<divdata-bind="foreach: format().fields()">
<h4><spandata-bind="text:name"></span><smalldata-bind="text:description"></small></h4>
<spandata-bind="if:type == 'text_field'">
<inputtype="text" data-bind="value: value">
</span>
<spandata-bind="if:type == 'text_area'">
<textareadata-bind="value: value"></textarea>
</span>
<spandata-bind="if:type == 'bullets'">
<spandata-bind="foreach:bullets">
<inputtype="text" data-bind="value: value">
</span>
<ahref="#" data-bind="click: addBullet">Add Bullet</a>
</span>
<spandata-bind="if:type == 'checkboxes'">
<spandata-bind="foreach:options">
<labelclass="checkbox inline">
<inputtype="checkbox" data-bind="checked: checked"><spandata-bind="text:label"></span>
</label>
</span>
</span>
<spandata-bind="if:type == 'radios'">
<spandata-bind="foreach:options">
<labelclass="radio inline">
<inputtype="radio" data-bind="checked: checked, attr: { name: parentId}"><spandata-bind="text:label"></span>
</label>
</span>
</span>
</div>
<divdata-bind="if:industriesAndGuidelines">
<h3>Industries and Guidelines</h3>
<pstyle="color:gray">Hold down Ctrl (Windows) or Command (Mac) to select multiple options.</p>
<label>Which industries should your writers understand?</label>
<p><selectdata-bind="options: industries, optionsText: 'name', selectedOptions: selectedIndustries" multiple="true"></select></p>
<labelclass="checkbox inline">
<inputtype="checkbox" data-bind="checked: requiresExpertise"> Do you need an Expert?
</label>
<pdata-bind="if:requiresExpertise"><selectdata-bind="options: teams, optionsText: 'name', value: selectedTeam, optionsCaption: 'Please Pick an Area of Expertise'"></select></p>
<label>What tone should your writers use?</label>
<p><selectdata-bind="options: guidelines, optionsText: 'name', selectedOptions: selectedGuidelines" multiple="true"></select></p>
</div>
<inputtype="submit" value="Submit">
</div>
</form>
</div>