Commit 95604afd authored by Kevin Gutierrez's avatar Kevin Gutierrez
Browse files

Format some html files

parent a05a47fb
......@@ -14,5 +14,5 @@ section.summary > .stats > li {
@media only screen and (max-width: 50em) {
section.summary > .stats {
grid-template-columns: repeat(2, 1fr);
}
}
\ No newline at end of file
}
}
......@@ -19,9 +19,9 @@
<a class="image-choice" href="{% if will_select_format %}{% url 'wagtailvideos:chooser_select_format' video.id %}{% else %}{% url 'wagtailvideos:video_chosen' video.id %}{% endif %}">
<div class="image">
{% if video.thumbnail %}
<img src='{{video.thumbnail.url}}' width="165" height="165" class="show-transparency">
<img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% else %}
<img width="165" height="165" class="show-transparency">
<img width="165" height="165" class="show-transparency" alt=""/>
{% endif %}
</div>
<h3>{{ video.title|ellipsistrim:60 }}</h3>
......
......@@ -14,7 +14,7 @@
<div class="nice-padding">
<div class="drop-zone">
<p>{% trans "Drag and drop videos into this area to upload immediately." %}</p>
<p>{{ help_text }}
<p>{{ help_text }}</p>
<form action="{% url 'wagtailvideos:add_multiple' %}" method="POST" enctype="multipart/form-data">
<div class="replace-file-input">
......@@ -84,7 +84,7 @@
max_file_size: "{{ error_max_file_size }}",
accepted_file_types: "{{ error_accepted_file_types }}"
}
}
};
window.tagit_opts = {
autocomplete: {source: "{{ autocomplete_url|addslashes }}"}
};
......
......@@ -10,14 +10,14 @@
{% endif %}
{% endfor %}
<li>
<input class='button' type="submit" value="{% trans 'Update' %}" />
<input class="button" type="submit" value="{% trans 'Update' %}" />
<a href="{% url 'wagtailvideos:delete_multiple' video.id %}" class="delete button button-secondary no">{% trans "Delete" %}</a>
</li>
</ul>
</form>
<div data-video-thumb="{{ video.id }}" class='thumb icon icon-media hasthumb'>
<div data-video-thumb="{{ video.id }}" class="thumb icon icon-media hasthumb">
{% if video.thumbnail %}
<img src="{{ video.thumbnail.url }}" />
<img src="{{ video.thumbnail.url }}" alt="{% trans 'Video thumbnail' %}" />
{% endif %}
</div>
<script>
......
{% extends "wagtailadmin/widgets/chooser.html" %}
{% load i18n %}
{% block chooser_class %}image-chooser{% endblock %}
{% block chosen_state_view %}
<div class="preview-image">
{% if video and video.thumbnail %}
<img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency">
<img src="{{video.thumbnail.url}}" width="165" height="165" class="show-transparency" alt="{% trans 'Video thumbnail' %}"/>
{% else %}
<img width="165" height="165" class="show-transparency">
<img width="165" height="165" class="show-transparency" alt=""/>
{% endif %}
</div>
{% endblock %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment