Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into perm-sys/cre…
Browse files Browse the repository at this point in the history
…ate-fix
  • Loading branch information
shivamMg committed Jun 16, 2016
2 parents f3732ca + dee72b3 commit dd47abd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 47 deletions.
2 changes: 1 addition & 1 deletion open_event/api/sponsors.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def post(self, event_id):

@api.route('/events/<int:event_id>/sponsors/types')
class SponsorTypesList(Resource):
@api.doc('list_sponsor_types')
@api.doc('list_sponsor_types', model=[fields.String()])
def get(self, event_id):
"""List all sponsor types"""
return DAO.list_types(event_id)
Expand Down
89 changes: 43 additions & 46 deletions open_event/templates/gentelella/admin/profile/_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,51 @@
<label>Details about user:</label>
<textarea name="details" id="summernote">{{profile.user_detail.details}}</textarea>


<label>Email:<span class="required">*</span>
</label>

<input required="required" name="email" class="form-control"
value="{{profile.email}}"/>


<label>Avatar:
</label>

{% if profile.user_detail.avatar %}
<input name="avatar" class="form-control" value="{{profile.user_detail.avatar}}"/>
{% else %}
<input name="avatar" class="form-control" placeholder="Enter Link for Avatar"/>
{% endif %}

<label>Contact:
</label>

{% if profile.user_detail.contact %}
<input name="contact" class="form-control" value="{{profile.user_detail.contact}}"/>
{% else %}
<input name="contact" class="form-control"/>
{% endif %}

<div class="row">
<div class="col-md-6 col-xs-6">
<label>Email:<span class="required">*</span>
</label>

<input required="required" name="email" class="form-control"
value="{{profile.email}}"/>
</div>
<div class="col-md-6 col-xs-6">
<label>Contact:
</label>

{% if profile.user_detail.contact %}
<input name="contact" class="form-control" value="{{profile.user_detail.contact}}"/>
{% else %}
<input name="contact" class="form-control"/>
{% endif %}
</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-6">
<label class="control-label">Facebook:
</label>

{% if profile.user_detail.facebook %}
<input name="facebook" class="form-control"
value="{{profile.user_detail.facebook}}"/>
{% else %}
<input name="facebook" class="form-control"/>
{% endif %}
</div>

<div class="col-md-6 col-xs-6">
<label class="control-label">Twitter:
</label>

{% if profile.user_detail.twitter %}
<input name="twitter" class="form-control" value="{{profile.user_detail.twitter}}"/>
{% else %}
<input name="twitter" class="form-control"/>
{% endif %}
</div>
</div>
</div>

<label class="control-label">Facebook:
</label>

{% if profile.user_detail.facebook %}
<input name="facebook" class="form-control"
value="{{profile.user_detail.facebook}}"/>
{% else %}
<input name="facebook" class="form-control"/>
{% endif %}


<label class="control-label">Twitter:
</label>

{% if profile.user_detail.twitter %}
<input name="twitter" class="form-control" value="{{profile.user_detail.twitter}}"/>
{% else %}
<input name="twitter" class="form-control"/>
{% endif %}

<p>
<center><input class="btn btn-success" type="submit" value="Update changes"></center>
</p>
Expand Down
8 changes: 8 additions & 0 deletions open_event/templates/gentelella/admin/profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ <h2>User Report

</div>
<!-- end of image cropping -->
<div id="avatar-button" style="padding: 10px 0px;">
<input type="file" id="profile-avatar" name="avatar" required="required"
class="upload-btn"/>
<label class="file-label" for="profile-avatar">
<i class="fa fa-cloud-upload" aria-hidden="true"></i>
Upload New
</label>
</div>

</div>
<h3>{{profile.user_detail.fullname}}</h3>
Expand Down

0 comments on commit dd47abd

Please sign in to comment.