github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/components/edit/UUID.html.go (about) 1 // Code generated by qtc from "UUID.html". DO NOT EDIT. 2 // See https://github.com/valyala/quicktemplate for details. 3 4 // <!-- Content managed by Project Forge, see [projectforge.md] for details. --> 5 6 //line views/components/edit/UUID.html:2 7 package edit 8 9 //line views/components/edit/UUID.html:2 10 import ( 11 "github.com/google/uuid" 12 13 "github.com/kyleu/dbaudit/app/controller/cutil" 14 "github.com/kyleu/dbaudit/views/components" 15 ) 16 17 //line views/components/edit/UUID.html:9 18 import ( 19 qtio422016 "io" 20 21 qt422016 "github.com/valyala/quicktemplate" 22 ) 23 24 //line views/components/edit/UUID.html:9 25 var ( 26 _ = qtio422016.Copy 27 _ = qt422016.AcquireByteBuffer 28 ) 29 30 //line views/components/edit/UUID.html:9 31 func StreamUUID(qw422016 *qt422016.Writer, key string, id string, value *uuid.UUID, placeholder ...string) { 32 //line views/components/edit/UUID.html:11 33 v := "" 34 if value != nil { 35 v = value.String() 36 } 37 38 //line views/components/edit/UUID.html:16 39 StreamString(qw422016, key, id, v, placeholder...) 40 //line views/components/edit/UUID.html:17 41 } 42 43 //line views/components/edit/UUID.html:17 44 func WriteUUID(qq422016 qtio422016.Writer, key string, id string, value *uuid.UUID, placeholder ...string) { 45 //line views/components/edit/UUID.html:17 46 qw422016 := qt422016.AcquireWriter(qq422016) 47 //line views/components/edit/UUID.html:17 48 StreamUUID(qw422016, key, id, value, placeholder...) 49 //line views/components/edit/UUID.html:17 50 qt422016.ReleaseWriter(qw422016) 51 //line views/components/edit/UUID.html:17 52 } 53 54 //line views/components/edit/UUID.html:17 55 func UUID(key string, id string, value *uuid.UUID, placeholder ...string) string { 56 //line views/components/edit/UUID.html:17 57 qb422016 := qt422016.AcquireByteBuffer() 58 //line views/components/edit/UUID.html:17 59 WriteUUID(qb422016, key, id, value, placeholder...) 60 //line views/components/edit/UUID.html:17 61 qs422016 := string(qb422016.B) 62 //line views/components/edit/UUID.html:17 63 qt422016.ReleaseByteBuffer(qb422016) 64 //line views/components/edit/UUID.html:17 65 return qs422016 66 //line views/components/edit/UUID.html:17 67 } 68 69 //line views/components/edit/UUID.html:19 70 func StreamUUIDVertical(qw422016 *qt422016.Writer, key string, id string, title string, value *uuid.UUID, indent int, help ...string) { 71 //line views/components/edit/UUID.html:20 72 id = cutil.CleanID(key, id) 73 74 //line views/components/edit/UUID.html:20 75 qw422016.N().S(`<div class="mb expanded">`) 76 //line views/components/edit/UUID.html:22 77 components.StreamIndent(qw422016, true, indent+1) 78 //line views/components/edit/UUID.html:22 79 qw422016.N().S(`<label for="`) 80 //line views/components/edit/UUID.html:23 81 qw422016.E().S(id) 82 //line views/components/edit/UUID.html:23 83 qw422016.N().S(`"><em class="title">`) 84 //line views/components/edit/UUID.html:23 85 qw422016.E().S(title) 86 //line views/components/edit/UUID.html:23 87 qw422016.N().S(`</em></label>`) 88 //line views/components/edit/UUID.html:24 89 components.StreamIndent(qw422016, true, indent+1) 90 //line views/components/edit/UUID.html:24 91 qw422016.N().S(`<div class="mt">`) 92 //line views/components/edit/UUID.html:25 93 StreamUUID(qw422016, key, id, value, help...) 94 //line views/components/edit/UUID.html:25 95 qw422016.N().S(`</div>`) 96 //line views/components/edit/UUID.html:26 97 components.StreamIndent(qw422016, true, indent) 98 //line views/components/edit/UUID.html:26 99 qw422016.N().S(`</div>`) 100 //line views/components/edit/UUID.html:28 101 } 102 103 //line views/components/edit/UUID.html:28 104 func WriteUUIDVertical(qq422016 qtio422016.Writer, key string, id string, title string, value *uuid.UUID, indent int, help ...string) { 105 //line views/components/edit/UUID.html:28 106 qw422016 := qt422016.AcquireWriter(qq422016) 107 //line views/components/edit/UUID.html:28 108 StreamUUIDVertical(qw422016, key, id, title, value, indent, help...) 109 //line views/components/edit/UUID.html:28 110 qt422016.ReleaseWriter(qw422016) 111 //line views/components/edit/UUID.html:28 112 } 113 114 //line views/components/edit/UUID.html:28 115 func UUIDVertical(key string, id string, title string, value *uuid.UUID, indent int, help ...string) string { 116 //line views/components/edit/UUID.html:28 117 qb422016 := qt422016.AcquireByteBuffer() 118 //line views/components/edit/UUID.html:28 119 WriteUUIDVertical(qb422016, key, id, title, value, indent, help...) 120 //line views/components/edit/UUID.html:28 121 qs422016 := string(qb422016.B) 122 //line views/components/edit/UUID.html:28 123 qt422016.ReleaseByteBuffer(qb422016) 124 //line views/components/edit/UUID.html:28 125 return qs422016 126 //line views/components/edit/UUID.html:28 127 } 128 129 //line views/components/edit/UUID.html:30 130 func StreamUUIDTable(qw422016 *qt422016.Writer, key string, id string, title string, value *uuid.UUID, indent int, help ...string) { 131 //line views/components/edit/UUID.html:31 132 id = cutil.CleanID(key, id) 133 134 //line views/components/edit/UUID.html:31 135 qw422016.N().S(`<tr>`) 136 //line views/components/edit/UUID.html:33 137 components.StreamIndent(qw422016, true, indent+1) 138 //line views/components/edit/UUID.html:33 139 qw422016.N().S(`<th class="shrink"><label for="`) 140 //line views/components/edit/UUID.html:34 141 qw422016.E().S(id) 142 //line views/components/edit/UUID.html:34 143 qw422016.N().S(`"`) 144 //line views/components/edit/UUID.html:34 145 components.StreamTitleFor(qw422016, help) 146 //line views/components/edit/UUID.html:34 147 qw422016.N().S(`>`) 148 //line views/components/edit/UUID.html:34 149 qw422016.E().S(title) 150 //line views/components/edit/UUID.html:34 151 qw422016.N().S(`</label></th>`) 152 //line views/components/edit/UUID.html:35 153 components.StreamIndent(qw422016, true, indent+1) 154 //line views/components/edit/UUID.html:35 155 qw422016.N().S(`<td>`) 156 //line views/components/edit/UUID.html:36 157 StreamUUID(qw422016, key, id, value, help...) 158 //line views/components/edit/UUID.html:36 159 qw422016.N().S(`</td>`) 160 //line views/components/edit/UUID.html:37 161 components.StreamIndent(qw422016, true, indent) 162 //line views/components/edit/UUID.html:37 163 qw422016.N().S(`</tr>`) 164 //line views/components/edit/UUID.html:39 165 } 166 167 //line views/components/edit/UUID.html:39 168 func WriteUUIDTable(qq422016 qtio422016.Writer, key string, id string, title string, value *uuid.UUID, indent int, help ...string) { 169 //line views/components/edit/UUID.html:39 170 qw422016 := qt422016.AcquireWriter(qq422016) 171 //line views/components/edit/UUID.html:39 172 StreamUUIDTable(qw422016, key, id, title, value, indent, help...) 173 //line views/components/edit/UUID.html:39 174 qt422016.ReleaseWriter(qw422016) 175 //line views/components/edit/UUID.html:39 176 } 177 178 //line views/components/edit/UUID.html:39 179 func UUIDTable(key string, id string, title string, value *uuid.UUID, indent int, help ...string) string { 180 //line views/components/edit/UUID.html:39 181 qb422016 := qt422016.AcquireByteBuffer() 182 //line views/components/edit/UUID.html:39 183 WriteUUIDTable(qb422016, key, id, title, value, indent, help...) 184 //line views/components/edit/UUID.html:39 185 qs422016 := string(qb422016.B) 186 //line views/components/edit/UUID.html:39 187 qt422016.ReleaseByteBuffer(qb422016) 188 //line views/components/edit/UUID.html:39 189 return qs422016 190 //line views/components/edit/UUID.html:39 191 }