-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor submission tags for reporting performance
- Loading branch information
Showing
13 changed files
with
163 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
|
||
<form> | ||
<label class="usa-label" for="input-type-text">Department name</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">HISP name</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Service name</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Service type</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Digital service or Contact center?</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">URL?</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Fiscal Year</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Quarter</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Transaction point - at what point in a journey?</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Channel of survey</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Survey Title</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Text of the trust question</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text">Likert of Thumb question?</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text"># of interactions</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-text"># of people offered the survey</label> | ||
<input class="usa-input" id="input-type-text" name="input-type-text" /> | ||
|
||
<label class="usa-label" for="input-type-textarea">Reflection Text</label> | ||
<textarea | ||
class="usa-textarea" | ||
id="input-type-textarea" | ||
name="input-type-textarea"></textarea> | ||
|
||
<br> | ||
<br> | ||
<br> | ||
|
||
<h3> | ||
Step 2 - File upload | ||
</h3> | ||
|
||
<div class="field"> | ||
<%#= form.label :logo, class: "usa-label" %> | ||
<div class="usa-alert usa-alert--info"> | ||
<div class="usa-alert__body"> | ||
<p class="usa-alert__text"> | ||
Upload a .csv with your detailed survey responses, | ||
in the specified format. | ||
</p> | ||
</div> | ||
</div> | ||
<p> | ||
<%= file_field_tag :logo, class: "usa-2button" %> | ||
</p> | ||
</div> | ||
</form> | ||
|
||
|
||
|
||
|
||
<br> | ||
<br> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<%= render template: "admin/submissions/index", locals: { form: @form, submissions: @submissions } %> | ||
<%= render template: "admin/submissions/index", locals: { form: form, submissions: submissions } %> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
$(".submissions-table-widget").html("<%= escape_javascript render(partial: 'admin/submissions/submissions_table', locals: { form: @form }) %>"); | ||
$(".submissions-table-widget").html("<%= escape_javascript render(partial: 'admin/submissions/submissions_table', locals: { form: @form, submissions: @submissions }) %>"); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddFormSubmissionTags < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :forms, :submission_tags, :string, array: true, default: [], comment: "cache the form's submissions tags for reporting" | ||
end | ||
end |
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