Skip to content

Commit

Permalink
Added maxlength to textareas
Browse files Browse the repository at this point in the history
  • Loading branch information
jose.correia committed Sep 29, 2019
1 parent 3353c14 commit 731a5aa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jeec_brain/models/event_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ class EventInformation(ModelMixin, db.Model):


def __repr__(self):
return 'Name: {} | Team: {}'.format(self.name, self.date)
return 'Name: {} | date: {}'.format(self.name, self.date)
2 changes: 1 addition & 1 deletion jeec_brain/templates/admin/activities/add_activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2>Activities Management</h2>

<div class="row">
<div class="input-field col s8">
<textarea name="description" id="bio" class="materialize-textarea"></textarea>
<textarea name="description" id="bio" class="materialize-textarea" maxlength="300"></textarea>
<label for="description">Description</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion jeec_brain/templates/admin/activities/update_activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2>{{ activity.type.name }}</h2>

<div class="row">
<div class="input-field col s8">
<input id="description" name="description" type="text" class="validate" value="{{ activity.description }}">
<textarea id="description" name="description" type="text" class="validate" value="{{ activity.description }}" maxlength="300">
<label for="description">Description</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion jeec_brain/templates/admin/speakers/add_speaker.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ <h2>Speakers Management</h2>

<div class="row">
<div class="input-field col s9">
<textarea name="bio" id="bio" class="materialize-textarea"></textarea>
<textarea name="bio" id="bio" class="materialize-textarea" maxlength="300"></textarea>
<label for="bio">Biography</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion jeec_brain/templates/admin/speakers/update_speaker.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h2>{{ speaker.name }}</h2>

<div class="row">
<div class="input-field col s9">
<textarea id="bio" name="bio" class="materialize-textarea" value="{{speaker.bio}}">{{ speaker.bio }}</textarea>
<textarea id="bio" name="bio" class="materialize-textarea" value="{{speaker.bio}}" maxlength="300">{{ speaker.bio }}</textarea>
<label for="bio">Biography</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion jeec_brain/templates/admin/teams/add_team.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>Team Management</h2>

<div class="row">
<div class="input-field col s8">
<textarea name="description" id="description" class="materialize-textarea"></textarea>
<textarea name="description" id="description" class="materialize-textarea" maxlength="300"></textarea>
<label for="description">Description of the team</label>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion jeec_brain/templates/admin/teams/update_team.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>{{ team.name }} Team</h2>

<div class="row">
<div class="input-field col s8">
<textarea id="description" name="description" class="materialize-textarea" value="{{team.description}}">{{ team.description }}</textarea>
<textarea id="description" name="description" class="materialize-textarea" value="{{team.description}}" maxlength="300">{{ team.description }}</textarea>
<label for="description">Description</label>
</div>
</div>
Expand Down

0 comments on commit 731a5aa

Please sign in to comment.