osb/spark/resources/views/settings/teams/update-team-photo.blade.php

40 lines
1.5 KiB
PHP
Raw Normal View History

2017-11-03 05:26:07 +00:00
<spark-update-team-photo :user="user" :team="team" inline-template>
<div>
<div class="panel panel-default">
<div class="panel-heading">{{ ucfirst(Spark::teamString()) }} Photo</div>
<div class="panel-body">
<div class="alert alert-danger" v-if="form.errors.has('photo')">
@{{ form.errors.get('photo') }}
</div>
<form class="form-horizontal" role="form">
<!-- Photo Preview-->
<div class="form-group">
<label class="col-md-4 control-label">&nbsp;</label>
<div class="col-md-6">
<span role="img" class="team-photo-preview"
:style="previewStyle">
</span>
</div>
</div>
<!-- Update Button -->
<div class="form-group">
<label class="col-md-4 control-label">&nbsp;</label>
<div class="col-md-6">
<label type="button" class="btn btn-primary btn-upload" :disabled="form.busy">
<span>Select New Photo</span>
<input ref="photo" type="file" class="form-control" name="photo" @change="update">
</label>
</div>
</div>
</form>
</div>
</div>
</div>
</spark-update-team-photo>