Skip to content

Commit

Permalink
tweaks in formatting and updated image types
Browse files Browse the repository at this point in the history
  • Loading branch information
masterof0 committed Apr 10, 2015
1 parent 15d0968 commit 8945c39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions codeAWS.py
Expand Up @@ -13,7 +13,7 @@

class reservation(Form):
num = IntegerField('num', [validators.Required(), validators.NumberRange(min=1, max=10)])
iType = SelectField('iType', choices=[('t1.micro', 'T1 micro'), ('t2.micro', 'T2 micro'), ('m3.xlarge', 'M3 X-Large')])
iType = SelectField('iType', choices=[('t2.micro', 'T2 Micro (preferred)'), ('t2.medium', 'T2 Medium'), ('m3.xlarge', 'M3 X-Large (training)')])
name = StringField('name', [validators.Required()])

@app.before_request
Expand Down Expand Up @@ -59,7 +59,7 @@ def instances():
def makeReservation():
form = reservation()
if request.method == "GET":
return render_template('reservation.html', form=form)
return render_template('reservation.html', form=form, pageTitle="AWS Reservation")

#@app.route('/update', methods=['GET','POST'])
#def update():
Expand Down
1 change: 1 addition & 0 deletions templates/base.html
Expand Up @@ -14,6 +14,7 @@
<ul class="nav nav-tabs">
<li><a class="color-me-white" href="instances">Manage Instances</a></li>
<li><a class="color-me-white" href="keys">Manage Keys</a></li>
<li><a class="color-me-white" href="reservation">Make Reservation</a></li>
</ul>
{% with messages = get_flashed_messages() %}
{% if messages %}
Expand Down
2 changes: 1 addition & 1 deletion templates/reservation.html
Expand Up @@ -5,7 +5,7 @@
<form class="form" method="POST" role="form">
{{ form.hidden_tag() }}
<div class="row">
<div class="col-xs-3">Number of instances:</div><div class="col-xs-3">{{ form.num(size=2) }}</div>
<div class="col-xs-3">Number of instances:</div><div class="col-xs-3">{{ form.num(size=2) }} *maximum of 10 instances per reservation</div>
</div>
<div class="row">
<div class="col-xs-3">Instance type:</div><div class="col-xs-3">{{ form.iType }}</div>
Expand Down

0 comments on commit 8945c39

Please sign in to comment.