Commit 129d0aa4 authored by Tim's avatar Tim

fix template for single shop

parent 6344e11e
Pipeline #35 failed with stage
......@@ -3,6 +3,8 @@ name = "Mastodon"
description = "Mastodon is a free, open-source social network. Pick a server that you trust — whichever you choose, you can interact with everyone else. Anyone can run their own Mastodon instance and participate in the social network seamlessly."
logo = "/img/logo-mastodon.png"
starting = "from 24€"
productid = "72"
accountkey = "XOp8tv6BSRWf7ir5qYWSyFFOgbHbulPS"
[[price]]
conditions = "Shared Instance"
......
......@@ -4,6 +4,8 @@ description = "Mastodon est un réseau social libre et open-source. Choisissez u
logo = "/img/logo-mastodon.png"
starting = "from 24€"
productid = "72"
accountkey = "XOp8tv6BSRWf7ir5qYWSyFFOgbHbulPS"
[[price]]
conditions = "<a href='https://mastodon.indie.host'>Shared Instance</a>"
......
......@@ -23,6 +23,7 @@
</p>
<section>
<h1 class="card-title">Price</h1>
{{ if isset .Params "accountkey" }}
<p>&lt; 10 utilisateurs: 125€/an</p>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-72">Commander</button>
<div class="modal fade" id="modal-72" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
......@@ -34,8 +35,8 @@
</div>
<div class="modal-body">
<form action="https://invoice.indie.host/buy_now" method="get" target="_top">
<input type="hidden" name="account_key" value="XOp8tv6BSRWf7ir5qYWSyFFOgbHbulPS"/>
<input type="hidden" name="product_id" value="72"/>
<input type="hidden" name="account_key" value="{{ .Params.accountkey }}"/>
<input type="hidden" name="product_id" value="{{ .Params.productid }}"/>
<div class="form-group">
<input class="form-control" type="text" name="first_name" placeholder="First Name" required/>
</div>
......@@ -87,6 +88,10 @@
</div>
</div>
</div>
{{ else }}
<p>Contactez nous pour un devis - contact@mail.indie.host</p>
{{ end }}
</section>
<section class="social">
......@@ -103,6 +108,7 @@
</div>
<div class=" col-md-8">
{{ .Content }}
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment