Add photos to design edit view
Getty Ritter
3 years ago
181 | 181 |
.order_by(model.Tag.tag_name),
|
182 | 182 |
"categories": design.category_list(),
|
183 | 183 |
"description": design.description,
|
184 | |
"photos": ({"image": d} for d in design.photos),
|
| 184 |
"photos": design.photos,
|
185 | 185 |
"id_str": f"{design.id:05}",
|
186 | 186 |
}
|
187 | 187 |
),
|
32 | 32 |
</div>
|
33 | 33 |
</div>
|
34 | 34 |
</div>
|
| 35 |
<div class="imgbox">
|
| 36 |
<div class="images">
|
| 37 |
{{#photos}}
|
| 38 |
<div class="image_edit">
|
| 39 |
<img src="/static/photos/{{filename}}"/><br/>
|
| 40 |
<a href="/edit/view-photo/{{filename}}">{{filename}}</a> —
|
| 41 |
<a href="/edit/photo/{{filename}}?design_id={{id}}">Delete this image</a>
|
| 42 |
</div>
|
| 43 |
{{/photos}}
|
| 44 |
</div>
|
| 45 |
</div>
|
35 | 46 |
</form>
|