Skip to content

Commit

Permalink
Clean up Post & Delete & Put functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
zouelfikar committed Jan 27, 2021
1 parent 74b132a commit f509fc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 346 deletions.
128 changes: 0 additions & 128 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,58 +58,6 @@

</div> &nbsp;

<!-- Put buttons -->
<div style="display: flex; text-align: center;">
<div>
<button class="btn btn-info mainButton" ng-click="showUpdateInput('station')"> Update a Station
</button>
</div>
&nbsp;
<div>
<button class="btn btn-info mainButton" ng-click="showUpdateInput('vehicle')"> Update a Vehicle </button>
</div>
&nbsp;
<div>
<button class="btn btn-info mainButton" ng-click="showUpdateInput('table')"> Update a Time Table </button>
</div>
&nbsp;

</div> &nbsp;

<!-- Post & Delete buttons -->
<div style="display: flex; text-align: center;">
<div>
<button class="btn btn-success mainButton" ng-click="showAddInputs('station')"> Add a Station </button>
</div>
&nbsp;
<div>
<button class="btn btn-success mainButton" ng-click="showAddInputs('vehicle')"> Add a Vehicle </button>
</div>
&nbsp;
<div>
<button class="btn btn-success mainButton" ng-click="showAddInputs('table')"> Add a Time Table </button>
</div>
&nbsp;

<div>
<button class="btn btn-danger mainButton" ng-click="showDeleteInput('station')"> Delete a Station
</button>
</div>
&nbsp;
<div>
<button class="btn btn-danger mainButton" ng-click="showDeleteInput('vehicle')"> Delete a Vehicle
</button>
</div>
&nbsp;
<div>
<button class="btn btn-danger mainButton" ng-click="showDeleteInput('table')"> Delete a Time Table
</button>
</div>
&nbsp;


</div> <br />


<!-- clear button -->
<div>
Expand Down Expand Up @@ -138,82 +86,6 @@
<button class="btn btn-primary" style="padding: 12px;" ng-click="getTableByID()"> Search </button>
</div>

<!-- Delete input fields -->
<div ng-show="enableStationDeleteInput">
<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="deleteStationID" placeholder="Enter an ID">
<button class="btn btn-primary" style="padding: 12px;" ng-click="deleteStaion()"> Delete </button>
</div>

<div ng-show="enableVehicleDeleteInput">
<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="deleteVehicleID" placeholder="Enter an ID">
<button class="btn btn-primary" style="padding: 12px;" ng-click="deleteVehicle()"> Delete </button>
</div>

<div ng-show="enableTableDeleteInput">
<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="deleteTableID" placeholder="Enter an ID">
<button class="btn btn-primary" style="padding: 12px;" ng-click="deleteTable()"> Delete </button>
</div>

<!-- Update/add inputs files -->
<div ng-show="enableStationUpdateInput || enableStationAddInput">
<div>
<input class=" input-field center" style="padding: 10px; width: 70%;" ng-show = "enableStationUpdateInput" type="text"
ng-model="putReplaceStation" placeholder="Replace with Station ID">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putStationID" placeholder="Enter an ID">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putLineID" placeholder="Enter line ID">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putLineName" placeholder="Enter line name">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putRowName" placeholder="Enter raw station name">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putFriendlyName" placeholder="Enter friendly station name">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putshortName" placeholder="Enter short station name">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putLat" placeholder="Enter lat">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putLong" placeholder="Enter long">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putInvalid" placeholder="Enter invalid">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putVerified" placeholder="Enter invalid">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putVerficationData" placeholder="Enter verification date">

<input class=" input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putGmaps" placeholder="Enter gmaps">

<input class="input-field center" style="padding: 10px; width: 70%;" type="text"
ng-model="putInfoComments" placeholder="Enter info comments">
<br /><br />
<button class="btn btn-primary input-button" ng-show = "enableStationUpdateInput" ng-click="updateStation()"> Update </button>
<button class="btn btn-primary input-button" ng-show = "enableStationAddInput" ng-click="addStation()"> Update </button>
</div>
</div>









<!-- result -->
<div>
Expand Down
Loading

0 comments on commit f509fc9

Please sign in to comment.