Skip to content

Commit

Permalink
Add logo image url
Browse files Browse the repository at this point in the history
cheap solution for now
  • Loading branch information
Axford committed Apr 15, 2017
1 parent cd97204 commit 521c84e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions main/templates/main/space_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ <h1>Edit Space Profile</h1>
{% render_field form.email class+="form-control" %}
</div>
</div>
<div class="form-group">
<label for="inputLogo" class="col-sm-2 control-label">Logo URL</label>
<div class="col-sm-10">
{% render_field form.logo_image_url class+="form-control" %}
</div>
</div>

<div class="form-group">
<label for="inputHavePremises" class="col-sm-2 control-label">Have Premises?</label>
<div class="col-sm-10">
Expand Down
2 changes: 1 addition & 1 deletion main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_object(self, queryset=None):

class SpaceUpdate(UpdateView):
model = Space
fields = ['name', 'status', 'main_website_url', 'email','have_premises', 'address_first_line', 'town', 'region', 'postcode', 'country', 'lat', 'lng']
fields = ['name', 'status', 'main_website_url', 'email','have_premises', 'address_first_line', 'town', 'region', 'postcode', 'country', 'lat', 'lng', 'logo_image_url']
success_url = '/home'

def get_object(self, queryset=None):
Expand Down

0 comments on commit 521c84e

Please sign in to comment.