Commit 961cda9d authored by Okhin's avatar Okhin
Browse files

Removing the need for caller phone

parent cc7cda6b
Pipeline #2419 passed with stages
in 9 seconds
......@@ -77,7 +77,6 @@ class Main extends Controller {
$f3->set('contact', $contact);
$data = array('api' => JWT_TOKEN,
'caller' => $f3->get(''),
'callee' => $contact['phone'],
'token' => $token);
// We want to generate a UNIQUE-ID (doesn't need to be cryptogaphically unique though
$call_id = str_replace('.', '-', uniqid('', true));
......@@ -33,17 +33,11 @@
<span id="contact-full_name-2" class="card-title grey-text text-darken-4">John Doe
<i class="material-icons">close</i>
<h5>{{ _("Call for free") }}</h5>
<h5>{{ _("Call this representative") }}</h5>
<form id="form-contact" method="post" action="">
<input type="text" id="contact_id" name="contact_id" hidden="hidden" value="">
<div class="input-field col s12">
<label for="phone">{{ _("We need your phone number to initiate the call") }}</label>
<input type="text" name="phone" required id="phone" />
{{ _('Starting with your <a href="">country code</a>, without the initial 0') }}
<input class="btn btn-default" type="submit" value="{{ _('Call me') }}" />
<p>{{ _("When you are ready to talk to this representative, go on the arguments and feedback page to find some help and talking points.") }}</p>
<input class="btn btn-default" type="submit" value="{{ _('I&#39;m ready to call' }}" />
Supports Markdown
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