-
Notifications
You must be signed in to change notification settings - Fork 79
/
job-create.hbs
81 lines (65 loc) · 1.92 KB
/
job-create.hbs
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{{#if model.options.is_job_admin}}
{{title 'Create Job'}}
<h1>Create a Job</h1>
{{else}}
{{title 'Create Request'}}
<h1>Create a Request</h1>
{{/if}}
<table>
<tr>
<td>
<label>Title:</label>
</td>
<td>
<p>{{input type='text' size=25 id='title' value=title}}</p>
</td>
<td>
</td>
</tr>
<tr>
<td>
<label>Submitter:</label>
</td>
<td>
{{#power-select selected=submitter options=model.characters searchField="name" onchange=(action "submitterChanged") as |char|}}
{{char.name}}
{{/power-select}}
</td>
</tr>
<tr>
<td>
<label>Category:</label>
</td>
<td>
{{#if category}}
<span class="label label-info job-category job-category-{{category}}">
{{category}}
</span>
{{else}}
<span class="label label-info job-category job-category-{{model.options.request_category}}">
{{model.options.request_category}}
</span>
{{/if}}
</td>
<td>
<ul class="nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="btn btn-default" href="#" role="button">Change Category <span class="caret"></span></span> </a>
<ul class="dropdown-menu">
{{#each model.options.category_values as |category| }}
<li><a href="#" {{action 'changeCategory' category}}><span class="label job-category job-category-{{category}}"> </span> {{category}}</a></li>
{{/each}}
</ul>
</li>
</ul>
</td>
</tr>
</table>
{{markdown-editor text=description}}
<div class="pull-right">
<button class="btn btn-primary" {{action 'createJob'}}>Create</button>
</div>
{{flash-messages}}
{{outlet}}