-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from globophobe/feature/release-0.1.5
Version 0.1.5
- Loading branch information
Showing
11 changed files
with
154 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "django-semantic-forms" | ||
version = "0.1.4" | ||
version = "0.1.5" | ||
description = "Django Semantic UI forms" | ||
authors = ["Alex <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
$(document).ready(function () { | ||
$(".ui.checkbox") | ||
.not(".initialized") | ||
.not("[name*=__prefix__]") | ||
.each(function () { | ||
$(this).checkbox(); | ||
$(this).addClass("initialized"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,50 @@ | |
|
||
{% block extrahead %} | ||
{{ form.media }} | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/googlecode.min.css"> | ||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/languages/django.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/languages/python.min.js"></script> | ||
|
||
<style type="text/css"> | ||
pre { | ||
white-space: pre-wrap; | ||
word-wrap: break-word; | ||
margin-bottom: 1em; | ||
} | ||
|
||
code { | ||
display: block; | ||
padding: 1em !important; | ||
background-color: #f8f8f8 !important; | ||
} | ||
|
||
code.inline { | ||
display: inline; | ||
padding: 0.25em !important; | ||
} | ||
</style> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="ui container"> | ||
<div class="ui basic segment"> | ||
<h2>Semantic Forms</h2> | ||
|
||
<div class="ui segment"> | ||
Import from <code class="inline">semantic_forms</code> | ||
<pre><code>from semantic_forms import SemanticForm, SemanticModelForm, SemanticCharField, SemanticDateTimeField, SemanticDateField, SemanticTimeField, SemanticTextareaField, SemanticCheckboxField, SemanticRadioChoiceField, SemanticCheckboxMultipleChoiceField, SemanticChoiceField, SemanticMultipleChoiceField</code></pre> | ||
|
||
Subclass <code class="inline">SemanticForm</code> or <code class="inline">SemanticModelForm</code> | ||
|
||
<pre><code>class AwesomeForm(SemanticForm): | ||
field = SemanticCharField()</code></pre> | ||
|
||
Inherit from <code class="inline">semantic_ui/base.html</code> | ||
<pre><code>{{ basic_template }}</code></pre> | ||
</div> | ||
|
||
{% block messages %} | ||
{% if messages %} | ||
|
@@ -50,3 +88,13 @@ <h2>Semantic Forms</h2> | |
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block extrascript %} | ||
<script type="text/javascript"> | ||
$( document ).ready(function() { | ||
$('pre code').each(function(i, block) { | ||
hljs.highlightBlock(block); | ||
}); | ||
}); | ||
</script> | ||
{% endblock %} |