-
Notifications
You must be signed in to change notification settings - Fork 1
/
store.txt
74 lines (64 loc) · 2.03 KB
/
store.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<-------------------------------------->
Algorithm for updating item
1. Get item details to update for item a.
2. Run a check for match
3. For match found, update neccessary details
4. For match not found,
4a. Check for previous match
4b. If match_found is true for item,
remove the item_matched to it and
update neccessary details for the match.
4c. else i.e no match found. continue
5. update the item
6. Return
1. Get item details to update
2. Check for previous match
3. If previous match is present
4.
3. Check for match,
4. If match
For Deleting item
1. Get item to delete
2. Check if item has match(es)
3. For match found, update neccessary details.
4. For match not found, go to next
5. delete the item.
< ------------------------------------ >
<section id="center-form" class="center container">
<h2> {{title}} Form</h2>
<p> {{error}} </p>
<form class ="centralize" action="#" method="post">
<div class="field">
<label></label>
<input >
</div>
<div class="field">
<label for="name">Name *</label>
<input name="name" id="name" type="text" placeholder="Name">
</div>
<div class="field">
<label for="category">Category *</label>
<select name= "category">
<option> -select- </option>
<option> Documents</option>
<option> Household</option>
<option> Others</option>
</select>
</div>
<div class="field">
<label for="detail"> Detail *</label>
<textarea name="detail" id="detail"rows="6" type="textarea" placeholder="Enter detail of object"></textarea>
</div>
<div class="field">
<label for="name">Image</label>
<input name="image" id="image" type="text" placeholder="Click to select upload image">
</div>
<div class="field">
<label for="name">Code</label>
<input name="image" id="image" type="text" value="{{data.item_code.code}}">
</div>
<div class="field 3u$ 12u$(small)">
<input type="submit" value="Submit" class="fit" />
</div>
</form>
</section>