-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update (#108) * 103 aggiungere tipi di domande integer e data (#107) * aggiunte tipologie di domande per allegati, date, numeri * Aggiunti devcontainer * navbar title configuration with RAILS_TITLE and RAILS_ICON (#106) * attivati tasti per aggiungere e rimuovere le domande per gli happening * removed codeql external flow
- Loading branch information
Showing
8 changed files
with
52 additions
and
118 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
20 changes: 12 additions & 8 deletions
20
app/components/editor/questions/sub_form_component.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
.field | ||
= @form.label :title | ||
.control | ||
= @form.text_field :title, class: 'input ', required: true | ||
|
||
.field.is-horizontal | ||
.field-body | ||
.field | ||
= @form.label :title | ||
.control | ||
= @form.text_field :title, class: 'input ', required: true | ||
.field | ||
= @form.label :category | ||
.control | ||
= @form.select :category, [['String',:string],['Text box',:text], ['Selezione', :select], ['File', :file]], {}, mandatory: true, data: {controller: 'slim', target: 'slim.simple'} | ||
.select.is-fullwidth= @form.select :category, [['Stringa',:string],['Box testo',:text], ['Selezione', :select], ['File', :file],['Data', :date],['Numero', :number]], {}, mandatory: true | ||
.field | ||
= @form.label :madatory | ||
= @form.label :mandatory | ||
.control | ||
= @form.select :mandatory, [['Si',true],['No',false]], {}, mandatory: true, data: {controller: 'slim', target: 'slim.simple'} | ||
.select.is-fullwidth= @form.select :mandatory, [['Si',true],['No',false]], {}, mandatory: true | ||
.field | ||
= @form.label :weight | ||
.control | ||
= @form.number_field :weight, class: 'input', required: true | ||
.field | ||
= @form.label :_destroy | ||
.control | ||
.select.is-fullwidth= @form.select :_destroy, [['Mantieni', nil],['Elimina', 1]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters