more translations and styling

This commit is contained in:
simon987
2019-02-06 19:12:07 -05:00
parent 367a81ac76
commit 920647b4aa
12 changed files with 170 additions and 105 deletions

View File

@@ -1,29 +1,34 @@
<mat-card>
<mat-card-title>Update project</mat-card-title>
<div class="container">
<mat-card class="mat-elevation-z8">
<mat-card-title>Update project</mat-card-title>
<mat-card-content>
<form (ngSubmit)="onSubmit()" *ngIf="project != undefined">
<mat-form-field appearance="outline">
<input type="text" matInput [(ngModel)]="project.name" name="name" placeholder="Name">
</mat-form-field>
<mat-card-content>
<form (ngSubmit)="onSubmit()" *ngIf="project != undefined" id="uf">
<mat-form-field appearance="outline">
<input type="text" matInput [(ngModel)]="project.name" name="name" placeholder="Name">
</mat-form-field>
<mat-form-field appearance="outline">
<textarea matInput [(ngModel)]="project.motd" placeholder="Message of the day" name="motd"></textarea>
</mat-form-field>
<mat-form-field appearance="outline">
<textarea matInput [(ngModel)]="project.motd" placeholder="Message of the day"
name="motd"></textarea>
</mat-form-field>
<mat-form-field appearance="outline">
<input type="text" matInput [(ngModel)]="project.clone_url" name="clone_url"
placeholder="Git clone url">
</mat-form-field>
<mat-form-field appearance="outline">
<input type="text" matInput [(ngModel)]="project.git_repo" name="git_repo"
placeholder='Full repository name (e.g. "simon987/task_tracker")'>
<mat-hint align="start">Changes on the <strong>master</strong> branch will be tracked if webhooks are
enabled
</mat-hint>
</mat-form-field>
<input type="submit" value="Update">
</form>
</mat-card-content>
</mat-card>
<mat-form-field appearance="outline">
<input type="text" matInput [(ngModel)]="project.clone_url" name="clone_url"
placeholder="Git clone url">
</mat-form-field>
<mat-form-field appearance="outline">
<input type="text" matInput [(ngModel)]="project.git_repo" name="git_repo"
placeholder='Full repository name (e.g. "simon987/task_tracker")'>
<mat-hint align="start">Changes on the <strong>master</strong> branch will be tracked if webhooks
are
enabled
</mat-hint>
</mat-form-field>
</form>
</mat-card-content>
<mat-card-actions>
<button type="submit" form="uf" mat-raised-button color="primary">{{"project.update" | translate}}</button>
</mat-card-actions>
</mat-card>
</div>