Statistics
| Branch: | Tag: | Revision:

one / src / sunstone / public / app / utils / user-inputs / row.hbs @ ffd792ca

History | View | Annotate | Download (3.06 KB)

1
<tr>
2
  <td>
3
    <label>{{tr "Name"}}
4
      <input class="user_input_name" type="text" pattern="^\w+$"/>
5
      <small class="form-error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
6
    </label>
7
  </td>
8
  <td>
9
    <label>{{tr "Type"}}
10
      <select class="user_input_type" >
11
        <option value="text">         {{tr "text"}}            </option>
12
        <option value="text64">       {{tr "text (base64)"}}   </option>
13
        <option value="password">     {{tr "password"}}        </option>
14
        <option value="number">       {{tr "number"}}          </option>
15
        <option value="number-float"> {{tr "number (float)"}}  </option>
16
        <option value="range">        {{tr "range"}}           </option>
17
        <option value="range-float">  {{tr "range (float)"}}   </option>
18
        <option value="list">         {{tr "list"}}            </option>
19
      </select>
20
    </label>
21
  </td>
22
  <td>
23
    <label>{{tr "Description"}}
24
      <textarea class="user_input_description"/>
25
    </label>
26
    <div class="user_input_type_right number">
27
      <label>{{tr "Default value"}}
28
        <input type="number" class="user_input_initial" placeholder="42"/>
29
      </label>
30
    </div>
31
    <div class="user_input_type_right number-float">
32
      <label{{tr "Default value"}}
33
        <input type="number" step="any" class="user_input_initial" placeholder="42.5"/>
34
      </label>
35
    </div>
36
    <div class="user_input_type_right range">
37
      <div class="row">
38
        <div class="small-6 columns">
39
          <label>{{tr "Min"}}
40
            <input type="number" class="user_input_params_min" placeholder="2"/>
41
          </label>
42
        </div>
43
        <div class="small-6 columns">
44
          <label>{{tr "Max"}}
45
            <input type="number" class="user_input_params_max" placeholder="16"/>
46
          </label>
47
        </div>
48
      </div>
49
      <label>{{tr "Default value"}}
50
        <input type="number" class="user_input_initial" placeholder="8"/>
51
      </label>
52
    </div>
53
    <div class="user_input_type_right range-float">
54
      <div class="row">
55
        <div class="small-6 columns">
56
          <label>{{tr "Min"}}
57
            <input type="number" step="any" class="user_input_params_min" placeholder="2"/>
58
          </label>
59
        </div>
60
        <div class="small-6 columns">
61
          <label>{{tr "Max"}}
62
            <input type="number" step="any" class="user_input_params_max" placeholder="16"/>
63
          </label>
64
        </div>
65
      </div>
66
      <label>{{tr "Default value"}}
67
        <input type="number" step="any" class="user_input_initial" placeholder="8.5"/>
68
      </label>
69
    </div>
70
    <div class="user_input_type_right list">
71
      <label>
72
        {{tr "Options"}}
73
        {{{tip (tr "Comma-separated list of options for the drop-down select input")}}}
74
        <input type=text class="user_input_params" placeholder="optA,optB,optC"/>
75
      </label>
76
      <label>{{tr "Default value"}}
77
        <input type=text class="user_input_initial" placeholder="optB"/>
78
      </label>
79
    </div>
80
  </td>
81
  <td>
82
    </br>
83
    <a href="#"><i class="fa fa-times-circle remove-tab"></i></a>
84
  </td>
85
</tr>