Deploy on 2026-06-05 17:47:27
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="page-header">
|
||||
<h1><?= $org ? 'Edit' : 'Add' ?> Organization</h1>
|
||||
<h1><?= $org ? 'تعديل' : 'إضافة' ?> منظمة / جهة استثمارية</h1>
|
||||
</div>
|
||||
|
||||
<?php if ($flashError = $this->session->getFlash('error')): ?>
|
||||
@@ -15,29 +15,49 @@
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Name *</label>
|
||||
<label class="form-label">الاسم *</label>
|
||||
<input type="text" name="name" class="form-control" required value="<?= $org ? $this->escape($org['name']) : '' ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">Domain</label>
|
||||
<label class="form-label">النطاق (Domain)</label>
|
||||
<input type="text" name="domain" class="form-control" placeholder="example.com" value="<?= $org ? $this->escape($org['domain'] ?? '') : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Type</label>
|
||||
<label class="form-label">النوع</label>
|
||||
<select name="type" class="form-control">
|
||||
<?php
|
||||
$typeTrans = [
|
||||
'vc' => 'رأس مال جريء',
|
||||
'angel' => 'مستثمر ملائكي',
|
||||
'accelerator' => 'مسرعة أعمال',
|
||||
'incubator' => 'حاضنة أعمال',
|
||||
'venture_studio' => 'استوديو مشاريع',
|
||||
'partner' => 'شريك',
|
||||
'other' => 'أخرى'
|
||||
];
|
||||
?>
|
||||
<?php foreach ($types as $t): ?>
|
||||
<option value="<?= $t ?>" <?= ($org && $org['type'] === $t) ? 'selected' : '' ?>><?= ucfirst($t) ?></option>
|
||||
<option value="<?= $t ?>" <?= ($org && $org['type'] === $t) ? 'selected' : '' ?>><?= $typeTrans[$t] ?? ucfirst($t) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">CRM Status</label>
|
||||
<label class="form-label">الحالة في CRM</label>
|
||||
<select name="crm_status" class="form-control">
|
||||
<?php
|
||||
$crmTrans = [
|
||||
'New' => 'جديد',
|
||||
'Researching' => 'قيد البحث',
|
||||
'Contacted' => 'تم التواصل',
|
||||
'Invested' => 'تم الاستثمار',
|
||||
'Rejected' => 'مرفوض'
|
||||
];
|
||||
?>
|
||||
<?php foreach ($statuses as $s): ?>
|
||||
<option value="<?= $s ?>" <?= ($org && $org['crm_status'] === $s) ? 'selected' : '' ?>><?= $s ?></option>
|
||||
<option value="<?= $s ?>" <?= ($org && $org['crm_status'] === $s) ? 'selected' : '' ?>><?= $crmTrans[$s] ?? $s ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -45,33 +65,33 @@
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label class="form-label">Country</label>
|
||||
<input type="text" name="country" class="form-control" placeholder="e.g. UAE" value="<?= $org ? $this->escape($org['country'] ?? '') : '' ?>">
|
||||
<label class="form-label">الدولة</label>
|
||||
<input type="text" name="country" class="form-control" placeholder="مثال: الإمارات" value="<?= $org ? $this->escape($org['country'] ?? '') : '' ?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">City</label>
|
||||
<input type="text" name="city" class="form-control" placeholder="e.g. Dubai" value="<?= $org ? $this->escape($org['city'] ?? '') : '' ?>">
|
||||
<label class="form-label">المدينة</label>
|
||||
<input type="text" name="city" class="form-control" placeholder="مثال: دبي" value="<?= $org ? $this->escape($org['city'] ?? '') : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Website URL</label>
|
||||
<label class="form-label">رابط الموقع الإلكتروني</label>
|
||||
<input type="url" name="website_url" class="form-control" placeholder="https://example.com" value="<?= $org ? $this->escape($org['website_url'] ?? '') : '' ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Funding Stage</label>
|
||||
<input type="text" name="funding_stage" class="form-control" placeholder="e.g. Seed, Series A" value="<?= $org ? $this->escape($org['funding_stage'] ?? '') : '' ?>">
|
||||
<label class="form-label">مرحلة التمويل</label>
|
||||
<input type="text" name="funding_stage" class="form-control" placeholder="مثال: Seed، Series A" value="<?= $org ? $this->escape($org['funding_stage'] ?? '') : '' ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">Description</label>
|
||||
<label class="form-label">الوصف</label>
|
||||
<textarea name="description" class="form-control" rows="4"><?= $org ? $this->escape($org['description'] ?? '') : '' ?></textarea>
|
||||
</div>
|
||||
|
||||
<div style="display: flex; gap: 12px; margin-top: 20px;">
|
||||
<button type="submit" class="btn btn-primary"><?= $org ? 'Update' : 'Create' ?> Organization</button>
|
||||
<a href="/admin/organizations" class="btn btn-secondary">Cancel</a>
|
||||
<button type="submit" class="btn btn-primary"><?= $org ? 'تحديث' : 'إنشاء' ?> المنظمة</button>
|
||||
<a href="/admin/organizations" class="btn btn-secondary">إلغاء</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user