Commit 986317f0 authored by David Haynes's avatar David Haynes 🙆
Browse files

Minor fixes, cleanup that sorta thing

- forgot to push this stuff up
- classic :dhaynes:
parent 0819dec2
......@@ -72,7 +72,6 @@ class URLFormTest(forms.ModelForm):
label='Long URL',
max_length=1000,
widget=forms.URLInput(attrs={
'placeholder': 'https://'
})
)
......@@ -118,16 +117,12 @@ class URLFormTest(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(URLFormTest, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-URLFormTest'
self.helper.form_method = 'post'
self.helper.form_action = 'submit_URLTest'
self.helper.form_method = 'POST'
self.helper.form_class = 'form-horizontal'
self.helper.label_class = 'col-md-1'
self.helper.field_class = 'col-md-6'
self.helper.help_text_inline = True
self.helper.error_text_inline = False
self.helper.layout = Layout(
Fieldset(
......@@ -140,8 +135,7 @@ class URLFormTest(forms.ModelForm):
<br />
"""),
PrependedText('target',
'https://',
placeholder="www."
'https:// required',
),
style="background: rgb(#F6F6F6);",
title="target_url",
......@@ -189,10 +183,11 @@ class URLFormTest(forms.ModelForm):
HTML("""
<br />
"""),
StrictButton('Shorten', css_class="btn-success"),
StrictButton('Shorten', css_class="btn-success", type='submit'),
)
)
class Meta:
model = URL
fields = ('target',)
......
......@@ -12,19 +12,6 @@ Go - A Product of Vapor
.asteriskField {
display: none;
}
.collapse {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
-moz-transition: height 0.35s ease;
-o-transition: height 0.35s ease;
transition: height 0.35s ease;
}
.collapse.in {
height: auto;
}
</style>
<div class="page-header" id="banner">
......@@ -35,7 +22,8 @@ Go - A Product of Vapor
</div>
</div>
{% crispy form %}
<div id='form-errors'>{{ form_errors }}</div>
<div class="well">
{% crispy form %}
</div>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment