Changed edit page: new background image, image is included in form, submit button text changed, title text changed, created new css class for edit forms
This commit is contained in:
parent
852c7fdb8a
commit
bb1f2f89e1
@ -119,6 +119,11 @@ a.mediagoblin_logo:hover {
|
|||||||
width:600px;
|
width:600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.edit_box {
|
||||||
|
width:600px;
|
||||||
|
background-image:url("../images/background_edit.png");
|
||||||
|
}
|
||||||
|
|
||||||
.form_box h1 {
|
.form_box h1 {
|
||||||
font-size:28px;
|
font-size:28px;
|
||||||
}
|
}
|
||||||
|
@ -20,19 +20,20 @@
|
|||||||
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
<h1>Edit details for {{ media.title }}</h1>
|
|
||||||
|
|
||||||
<form action="{{ request.urlgen('mediagoblin.edit.edit_media',
|
<form action="{{ request.urlgen('mediagoblin.edit.edit_media',
|
||||||
user= media.uploader().username,
|
user= media.uploader().username,
|
||||||
media= media._id) }}"
|
media= media._id) }}"
|
||||||
method="POST" enctype="multipart/form-data">
|
method="POST" enctype="multipart/form-data">
|
||||||
<div class="submit_box form_box">
|
<div class="edit_box form_box">
|
||||||
|
<h1>Editing {{ media.title }}</h1>
|
||||||
{{ wtforms_util.render_divs(form) }}
|
{{ wtforms_util.render_divs(form) }}
|
||||||
<div class="form_submit_buttons">
|
<div class="form_submit_buttons">
|
||||||
<input type="submit" value="submit" class="button" />
|
<input type="submit" value="save changes" class="button" />
|
||||||
</div>
|
</div>
|
||||||
|
<img src="{{ request.app.public_store.file_url(
|
||||||
|
media['media_files']['thumb']) }}" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<img src="{{ request.app.public_store.file_url(
|
|
||||||
media['media_files']['thumb']) }}" />
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user