Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | const NewFormButton = { |
||
20 | getNewForm() { |
||
21 | const newForm = document.createElement('fieldset'); |
||
22 | newForm.setAttribute('class', 'code-form--file'); |
||
23 | newForm.setAttribute('data-index', this.index); |
||
24 | |||
25 | newForm.innerHTML = |
||
26 | `<label class="code-form--label" for="name[${this.index}]">Nazwa pliku (opcjonalna)</label> |
||
27 | <input type="text" id="name[${this.index}]" name="name[${this.index}]" class="code-form--control"> |
||
28 | <label for="content[${this.index}]" class="code-form--label">Treść pliku</label> |
||
29 | <textarea name="content[${this.index}]" id="content[${this.index}]" rows="10" class="code-form--control code-form--control__textarea"></textarea>`; |
||
30 | |||
31 | return newForm; |
||
32 | }, |
||
33 | }; |
||
36 |