-
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.
WIP: Add file upload to general agenda (add-general-agenda-app)
- Loading branch information
Showing
6 changed files
with
151 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.direct-upload { | ||
display: inline-block; | ||
position: relative; | ||
padding: 2px 4px; | ||
margin: 0 3px 3px 0; | ||
border: 1px solid rgba(0, 0, 0, 0.3); | ||
border-radius: 3px; | ||
font-size: 11px; | ||
line-height: 13px; | ||
} | ||
|
||
.direct-upload--pending { | ||
opacity: 0.6; | ||
} | ||
|
||
.direct-upload__progress { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
opacity: 0.2; | ||
background: #0076ff; | ||
transition: width 120ms ease-out, opacity 60ms 60ms ease-in; | ||
transform: translate3d(0, 0, 0); | ||
} | ||
|
||
.direct-upload--complete .direct-upload__progress { | ||
opacity: 0.4; | ||
} | ||
|
||
.direct-upload--error { | ||
border-color: red; | ||
} | ||
|
||
input[type=file][data-direct-upload-url][disabled] { | ||
display: none; | ||
} |
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
70 changes: 70 additions & 0 deletions
70
app/views/apps/general_agenda_app/general_agenda/index.html.erb
Large diffs are not rendered by default.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
app/views/apps/general_agenda_app/general_agenda/invalid_template.html.erb
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,14 @@ | ||
<%= render partial: 'header' %> | ||
|
||
<div class="govuk-error-summary" aria-labelledby="error-summary-title" role="alert" tabindex="-1" data-module="govuk-error-summary"> | ||
<h2 class="govuk-error-summary__title" id="error-summary-title"> | ||
Tento formulár nie je možné zobraziť | ||
</h2> | ||
<div class="govuk-error-summary__body"> | ||
<ul class="govuk-list govuk-error-summary__list" data-turbolinks="false"> | ||
<% @application_form.template_errors.each do |msg| %> | ||
<li><%= msg %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
</div> |