Download templates/admin/custom_edit.html from BitBean/company: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/spaces/BitBean/company/resolve/main/templates/admin/custom_edit.html
- Command line
-
hf download hf://spaces/BitBean/company/templates/admin/custom_edit.html
-
curl -L -o custom_edit.html https://huggingface.co/spaces/BitBean/company/resolve/main/templates/admin/custom_edit.html
1.83 kB
| {# templates/admin/custom_edit.html #} | |
| {% extends 'admin/custom_master.html' %} | |
| {% from 'admin/lib.html' import render_form_fields, form_tag with context %} | |
| {% block body %} | |
| <div class="container-fluid"> | |
| {% block edit_form %} | |
| {{ form_tag() }} | |
| <div class="row"> | |
| <!-- Kolom Kiri (Utama) --> | |
| <div class="col-md-8"> | |
| <div class="card"> | |
| <div class="card-body"> | |
| {{ render_form_fields(form, form_opts=form_opts, field_name='category') }} | |
| {{ render_form_fields(form, form_opts=form_opts, field_name='name') }} | |
| {{ render_form_fields(form, form_opts=form_opts, field_name='description') }} | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Kolom Kanan (Sekunder) --> | |
| <div class="col-md-4"> | |
| <div class="card"> | |
| <div class="card-body"> | |
| {{ render_form_fields(form, form_opts=form_opts, field_name='price') }} | |
| {{ render_form_fields(form, form_opts=form_opts, field_name='image') }} | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| {{ render_form_fields(form, form_opts=form_opts, field_name='csrf_token') }} | |
| {% block form_actions %} | |
| <div class="d-flex justify-content-between"> | |
| <input type="submit" class="btn btn-primary" name="_add_another" value="Save and Add Another"> | |
| <input type="submit" class="btn btn-primary" name="_continue_editing" value="Save and Continue Editing"> | |
| <input type="submit" class="btn btn-success" name="save" value="Save"> | |
| </div> | |
| {% endblock %} | |
| </div> | |
| </div> | |
| </div> | |
| </form> | |
| {% endblock %} | |
| </div> | |
| {% endblock %} |