hidden key images form added, but not used for now

master
moneroexamples 8 years ago
parent 1cd5426d94
commit 02b4e8251a

@ -254,6 +254,20 @@ int main(int ac, const char* av[]) {
return xmrblocks.show_checkrawkeyimgs(raw_data);
});
CROW_ROUTE(app, "/genrawkeyimgs").methods("POST"_method)
([&](const crow::request& req) {
map<std::string, std::string> post_body = xmreg::parse_crow_post_data(req.body);
for (auto& kv: post_body)
{
cout << kv.first << ": " << kv.second << endl;
}
return xmrblocks.show_checkrawkeyimgs(string{});
});
CROW_ROUTE(app, "/search").methods("GET"_method)
([&](const crow::request& req) {

@ -24,9 +24,17 @@
<h4>Key images for address: {{address}}</h4>
<div class="center">
<form action="/genrawkeyimgs" method="post" style="width:100%; margin-top:15px" class="style-1">
<table class="center" style="width:80%">
<tr><td>Key no.</td><td>Key image</td><td>Timestamp</td></td><td>Is spent?</td></tr>
<tr>
<td>Key no.</td>
<td>Key image</td>
<td>Timestamp</td>
<td>Is spent?</td>
</tr>
{{#key_imgs}}
<input type="hidden" id="key_img_{{key_image}}" name="key_sig_pair_{{key_image}}" value="{{signature}}">
<tr>
<td>{{key_no}}</td>
<td>
@ -49,6 +57,10 @@
</tr>
{{/key_imgs}}
</table>
<br/>
<!-- <input type="submit" name="action" value="remove selected keys">-->
</form>
</div>

Loading…
Cancel
Save