mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
* Add basic markdown support site wide
* Improved MD support.
Add some styling for images in MD
Add support for the bastardisation of the MD html for RML.
* Add processing for <ul> in RML
* Add OL processing to RML
* Fix a bug with squares appearing around the last page number
* Remove rml formatting in event_detail
* Improve handling of code blocks in RML
* Add MD to rigboard
Reduce MD title sizes as they were offensively large
* Add parsing of markdown when editing event items
* Improved list handling in RML
* Add tests for markdown support.
Focuses mainly on RML as that's where it will break
* Add indications of where MD support is enabled as per comment by @samozzy in #178.
Isn't quite a full description, but for the most part this should be enough for the people who know how to use it see where they can use it.
* Add failing test for markdown processing none
* Fix for failing test in e0d56e
* Add failing test for using single line breaks as per comment on #214
* Enable line break extension for single breaks in paragraphs by new lines.
Pass tests in ef3de607c3
* Enable GH flavour linebreaks in JS rendered markdown
* Made RML bullets pretty :)
* Added WYSIWYG editor. Works for notes & description, fails miserably for items :(
* Fixed for event items. Will probably fail tests because selenium can't type in simpleMDE :(
* FIX: Re-enable markdown on paperwork
Strikethrough is broken in all sorts of places for whatever reason
* FEAT: Markdown support on asset comments
* FIX: Prevent js injection through markdown fields
* Initial fixes
* Basic dark theme for simplemde
* Swap to locally delivered SimpleMDE
* Region for selenium testing of SimpleMDE
Bleh, Javascript all around
* Tests passing!
Fixed not using region for item modal, and overflow error on paperwork with really long description. Looks junk but I'm not really bothered
* Pep8 fixes
* Fallback for null HCapatcha sitekey
I.e. when we're on a branch
* Fix item description print being broken
* Actually fix sitekey problem
* Fixes for using markdown in asset comments
* Properly initialise markdown on asset comments
Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: FreneticScribbler <aj@aronajones.com>
59 lines
3.1 KiB
HTML
59 lines
3.1 KiB
HTML
<div class="modal fade" id="itemModal" role="dialog" aria-labelledby="itemModal" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4>{{ object.name|default:"New Event" }}</h4>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<form id="item-form">
|
|
<div class="modal-body">
|
|
<div class="form-group form-row">
|
|
<label for="item_name" class="col-sm-2 col-form-label">Item Name</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" placeholder="Item Name" class="form-control" required maxlength="255"
|
|
id="item_name"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-row" data-toggle="tooltip" title="A detailed description of the kit. MD enabled.">
|
|
<label for="item_description" class="col-sm-2 col-form-label">Description</label>
|
|
<div class="col-sm-10">
|
|
<textarea type="text" placeholder="Description" class="form-control md-enabled"
|
|
id="item_description" rows="8"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="col-sm-6">
|
|
<div class="form-group form-row">
|
|
<label for="item_quantity" class="col-sm-4 col-form-label">Quantity</label>
|
|
<div class="col-sm-8">
|
|
<input type="number" placeholder="Quantity" class="form-control" required
|
|
min="1" id="item_quantity"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="form-group form-row">
|
|
<label for="item_cost" class="col-sm-4 col-form-label">Cost</label>
|
|
|
|
<div class="col-sm-8">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend"><span class="input-group-text">£</span></div>
|
|
<input type="number" placeholder="Cost" class="form-control" required
|
|
min="-99999999.99" max="99999999.99" step="0.01"
|
|
id="item_cost"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<input type="submit" class="btn btn-primary">
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|