NDOJ/templates/organization/edit.html

48 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
{% extends "base.html" %}
{% block js_media %}
{{ form.media.js }}
<script type="text/javascript">
window.django = {jQuery: $};
function pluralidx(count) {
return (count == 1) ? 0 : 1;
}
function gettext(msgid) {
return msgid;
}
function interpolate(fmt, obj, named) {
if (named) {
return fmt.replace(/%\(\w+\)s/g, function (match) {
return String(obj[match.slice(2, -2)])
});
} else {
return fmt.replace(/%s/g, function (match) {
return String(obj.shift())
});
}
}
</script>
{% endblock %}
{% block media %}
{{ form.media.css }}
<link rel="stylesheet" href="{{ static('admin/css/widgets.css') }}" type="text/css">
<link rel="stylesheet" href="{{ static('admin/css/pagedown.css') }}" type="text/css">
<link rel="stylesheet" href="{{ static('problem_edit.css') }}" type="text/css">
<style>
#id_about {
width: 500px;
}
</style>
{% endblock %}
{% block body %}
2021-10-10 22:37:15 +00:00
<form action="" method="post" class="form-area" style="width:100%">
2020-01-21 06:35:58 +00:00
{% csrf_token %}
<table border="0" style="text-align:left">{{ form.as_table() }}</table>
<button type="submit">{{ _('Update') }}</button>
</form>
{% endblock %}